equal
deleted
inserted
replaced
|
1 # -*- coding: utf-8 -*- |
|
2 from __future__ import unicode_literals |
|
3 |
|
4 from django.db import models, migrations |
|
5 from django.conf import settings |
|
6 |
|
7 |
|
8 class Migration(migrations.Migration): |
|
9 |
|
10 dependencies = [ |
|
11 migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|
12 ] |
|
13 |
|
14 operations = [ |
|
15 migrations.CreateModel( |
|
16 name='RegistrationProfile', |
|
17 fields=[ |
|
18 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
|
19 ('activation_key', models.CharField(max_length=40, verbose_name='activation key')), |
|
20 ('user', models.ForeignKey(verbose_name='user', to=settings.AUTH_USER_MODEL, unique=True)), |
|
21 ], |
|
22 options={ |
|
23 'verbose_name': 'registration profile', |
|
24 'verbose_name_plural': 'registration profiles', |
|
25 }, |
|
26 ), |
|
27 ] |