1
|
|
|
# -*- coding: utf-8 -*- |
2
|
|
|
# Generated by Django 1.11 on 2018-07-05 07:42 |
3
|
|
|
from __future__ import unicode_literals |
4
|
|
|
|
5
|
|
|
from django.db import migrations, models |
6
|
|
|
|
7
|
|
|
|
8
|
|
|
class Migration(migrations.Migration): |
9
|
|
|
|
10
|
|
|
initial = True |
11
|
|
|
|
12
|
|
|
dependencies = [ |
13
|
|
|
('auth', '0008_alter_user_username_max_length'), |
14
|
|
|
] |
15
|
|
|
|
16
|
|
|
operations = [ |
17
|
|
|
migrations.CreateModel( |
18
|
|
|
name='UserProfile', |
19
|
|
|
fields=[ |
20
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
21
|
|
|
('password', models.CharField(max_length=128, verbose_name='password')), |
22
|
|
|
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), |
23
|
|
|
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), |
24
|
|
|
('email', models.EmailField(max_length=255, unique=True)), |
25
|
|
|
('name', models.CharField(max_length=255)), |
26
|
|
|
('is_active', models.BooleanField(default=True)), |
27
|
|
|
('is_staff', models.BooleanField(default=False)), |
28
|
|
|
('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')), |
29
|
|
|
('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')), |
30
|
|
|
], |
31
|
|
|
options={ |
32
|
|
|
'abstract': False, |
33
|
|
|
}, |
34
|
|
|
), |
35
|
|
|
] |
36
|
|
|
|