32 lines
1.5 KiB
Python
32 lines
1.5 KiB
Python
# Generated by Django 1.11.26 on 2019-11-14 14:12
|
|
|
|
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
import model_utils.fields
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('sites', '0002_alter_domain_unique'),
|
|
('student', '0025_auto_20191101_1846'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='AllowedAuthUser',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
|
|
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
|
|
('email', models.EmailField(help_text="An employee (a user whose email has current site's domain name) whose email exists in this model, can be able to login from login screen through email and password. And if any employee's email doesn't exist in this model then that employee can login via third party authentication backend only.", max_length=254, unique=True)),
|
|
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='allowed_auth_users', to='sites.Site')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|