1 # -*- coding: utf-8 -*- |
|
2 from __future__ import unicode_literals |
|
3 |
|
4 from django.db import models, migrations |
|
5 import django.core.validators |
|
6 import django.utils.timezone |
|
7 from django.conf import settings |
|
8 |
|
9 |
|
10 class Migration(migrations.Migration): |
|
11 |
|
12 dependencies = [ |
|
13 ('auth', '0001_initial'), |
|
14 ] |
|
15 |
|
16 operations = [ |
|
17 migrations.CreateModel( |
|
18 name='AmmicoUser', |
|
19 fields=[ |
|
20 ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)), |
|
21 ('password', models.CharField(verbose_name='password', max_length=128)), |
|
22 ('last_login', models.DateTimeField(verbose_name='last login', default=django.utils.timezone.now)), |
|
23 ('is_superuser', models.BooleanField(verbose_name='superuser status', help_text='Designates that this user has all permissions without explicitly assigning them.', default=False)), |
|
24 ('username', models.CharField(verbose_name='username', unique=True, help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, validators=[django.core.validators.RegexValidator('^[\\w.@+-]+$', 'Enter a valid username.', 'invalid')])), |
|
25 ('first_name', models.CharField(verbose_name='first name', blank=True, max_length=30)), |
|
26 ('last_name', models.CharField(verbose_name='last name', blank=True, max_length=30)), |
|
27 ('email', models.EmailField(verbose_name='email address', blank=True, max_length=75)), |
|
28 ('is_staff', models.BooleanField(verbose_name='staff status', help_text='Designates whether the user can log into this admin site.', default=False)), |
|
29 ('is_active', models.BooleanField(verbose_name='active', help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', default=True)), |
|
30 ('date_joined', models.DateTimeField(verbose_name='date joined', default=django.utils.timezone.now)), |
|
31 ('idUser', models.CharField(blank=True, max_length=50)), |
|
32 ('groups', models.ManyToManyField(to='auth.Group', help_text='The groups this user belongs to. A user will get all permissions granted to each of his/her group.', verbose_name='groups', blank=True, related_name='user_set', related_query_name='user')), |
|
33 ('user_permissions', models.ManyToManyField(to='auth.Permission', help_text='Specific permissions for this user.', verbose_name='user permissions', blank=True, related_name='user_set', related_query_name='user')), |
|
34 ], |
|
35 options={ |
|
36 'verbose_name': 'user', |
|
37 'verbose_name_plural': 'users', |
|
38 'abstract': False, |
|
39 }, |
|
40 bases=(models.Model,), |
|
41 ), |
|
42 migrations.CreateModel( |
|
43 name='Profile', |
|
44 fields=[ |
|
45 ('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)), |
|
46 ('image', models.URLField(blank=True, max_length=2048)), |
|
47 ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), |
|
48 ], |
|
49 options={ |
|
50 }, |
|
51 bases=(models.Model,), |
|
52 ), |
|
53 ] |
|