From 9dff6410746c9e5e510bfc0608725f7bddf3f8bc Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Wed, 13 Nov 2019 10:41:07 +0100 Subject: [PATCH] Base apimail urls on mail/ ; add initial migration --- SciPost_v1/urls.py | 2 +- apimail/migrations/0001_initial.py | 24 ++++++++++++++++++++++++ apimail/migrations/__init__.py | 0 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 apimail/migrations/0001_initial.py create mode 100644 apimail/migrations/__init__.py diff --git a/SciPost_v1/urls.py b/SciPost_v1/urls.py index d3d1625c3..08f708cbf 100644 --- a/SciPost_v1/urls.py +++ b/SciPost_v1/urls.py @@ -41,7 +41,7 @@ urlpatterns = [ url(r'^ajax_select/', include(ajax_select_urls)), url(r'^api/', include((router.urls, 'api'))), path( - 'apimail/', + 'mail/', include('apimail.urls', namespace='apimail') ), url(r'^10.21468/%s/' % JOURNAL_REGEX, diff --git a/apimail/migrations/0001_initial.py b/apimail/migrations/0001_initial.py new file mode 100644 index 000000000..f206a627d --- /dev/null +++ b/apimail/migrations/0001_initial.py @@ -0,0 +1,24 @@ +# Generated by Django 2.1.8 on 2019-11-13 09:37 + +import django.contrib.postgres.fields.jsonb +from django.db import migrations, models +import uuid + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Event', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('uuid', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False)), + ('data', django.contrib.postgres.fields.jsonb.JSONField(default=dict)), + ], + ), + ] diff --git a/apimail/migrations/__init__.py b/apimail/migrations/__init__.py new file mode 100644 index 000000000..e69de29bb -- GitLab