kers/users/migrations/0001_initial.py

37 lines
1.8 KiB
Python
Raw Normal View History

2020-07-21 22:51:40 +00:00
# Generated by Django 3.0.8 on 2020-07-21 22:48
2020-07-21 20:24:45 +00:00
from django.db import migrations, models
2020-07-21 22:51:40 +00:00
import django.utils.timezone
2020-07-21 20:24:45 +00:00
class Migration(migrations.Migration):
initial = True
dependencies = [
2020-07-21 22:51:40 +00:00
('auth', '0011_update_proxy_permissions'),
2020-07-21 20:24:45 +00:00
]
operations = [
migrations.CreateModel(
2020-07-21 22:51:40 +00:00
name='CustomUser',
2020-07-21 20:24:45 +00:00
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2020-07-21 22:51:40 +00:00
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
2020-07-21 20:24:45 +00:00
('zeus_id', models.IntegerField()),
2020-07-21 22:51:40 +00:00
('is_staff', models.BooleanField(default=False)),
('username', models.CharField(max_length=50, unique=True)),
2020-07-21 20:24:45 +00:00
('student_number', models.CharField(max_length=255)),
2020-07-21 22:51:40 +00:00
('real_name', models.CharField(max_length=100)),
('date_joined', models.DateTimeField(default=django.utils.timezone.now)),
('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')),
('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')),
2020-07-21 20:24:45 +00:00
],
2020-07-21 22:51:40 +00:00
options={
'abstract': False,
},
2020-07-21 20:24:45 +00:00
),
]