Aurélien Bompard has proposed merging
lp:~abompard/postorius/postorius_migrations into lp:postorius.
Requested reviews:
Mailman Coders (mailman-coders)
For more details, see:
https://code.launchpad.net/~abompard/postorius/postorius_migrations/+merge/259693
Enable migrations as required by Django 1.8+
Django 1.8+ won't let an app without migrations depend on django.contrib.auth
models, which is migrations-enabled. Django will create the legacy tables first
and there will be a database error.
This commit add basic migrations support in Postorius by following:
https://docs.djangoproject.com/en/1.8/topics/migrations/#adding-migrations-to-apps
--
Your team Mailman Coders is requested to review the proposed merge of
lp:~abompard/postorius/postorius_migrations into lp:postorius.
=== added directory 'src/postorius/migrations'
=== added file 'src/postorius/migrations/0001_initial.py'
--- src/postorius/migrations/0001_initial.py 1970-01-01 00:00:00 +0000
+++ src/postorius/migrations/0001_initial.py 2015-05-20 21:33:26 +0000
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+from django.conf import settings
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='AddressConfirmationProfile',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('email', models.EmailField(max_length=254)),
+ ('activation_key', models.CharField(max_length=40)),
+ ('created', models.DateTimeField()),
+ ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
+ ],
+ ),
+ ]
=== added file 'src/postorius/migrations/__init__.py'
_______________________________________________
Mailman-coders mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mailman-coders