You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0001_initial.py 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.9.7 on 2016-07-13 09:29
  3. from __future__ import unicode_literals
  4. import django.core.validators
  5. from django.db import migrations, models
  6. import django.utils.timezone
  7. import re
  8. class Migration(migrations.Migration):
  9. initial = True
  10. dependencies = [
  11. ('auth', '0007_alter_validators_add_error_messages'),
  12. ]
  13. operations = [
  14. migrations.CreateModel(
  15. name='User',
  16. fields=[
  17. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  18. ('password', models.CharField(max_length=128, verbose_name='password')),
  19. ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
  20. ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
  21. ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')),
  22. ('first_name', models.CharField(blank=True, max_length=255, verbose_name='First name')),
  23. ('last_name', models.CharField(blank=True, max_length=255, verbose_name='Last name')),
  24. ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='Staff status')),
  25. ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='Active')),
  26. ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
  27. ('username', models.CharField(help_text='Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters', max_length=30, unique=True, validators=[django.core.validators.RegexValidator(re.compile('^[\\w.@+-]+$', 32), 'Enter a valid username.', 'invalid')], verbose_name='username')),
  28. ('extra_field', models.CharField(blank=True, max_length=5, verbose_name='Nobody needs me')),
  29. ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
  30. ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
  31. ],
  32. ),
  33. ]