--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/app_migrations/registration/0001_initial.py Thu Apr 30 13:32:34 2015 +0200
@@ -0,0 +1,27 @@
+# -*- 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='RegistrationProfile',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('activation_key', models.CharField(max_length=40, verbose_name='activation key')),
+ ('user', models.ForeignKey(verbose_name='user', to=settings.AUTH_USER_MODEL, unique=True)),
+ ],
+ options={
+ 'verbose_name': 'registration profile',
+ 'verbose_name_plural': 'registration profiles',
+ },
+ ),
+ ]
--- a/src/ldtplatform/settings.py Tue Apr 28 15:45:13 2015 +0200
+++ b/src/ldtplatform/settings.py Thu Apr 30 13:32:34 2015 +0200
@@ -154,9 +154,14 @@
'metadatacomposer',
)
+MIGRATION_MODULES = {
+ "registration": "app_migrations.registration",
+}
+
+
#AUTH_PROFILE_MODULE = 'user.UserProfile'
AUTH_USER_MODEL = 'user.LdtUser'
-INITIAL_CUSTOM_USER_MIGRATION = "0009_rename_auth_user_to_user_ldt_user"
+#INITIAL_CUSTOM_USER_MIGRATION = "0009_rename_auth_user_to_user_ldt_user"
DECOUPAGE_BLACKLIST = (
"de_PPP",