evg-app-back/organisations/migrations/0005_auto_20210120_1944.py
2021-01-20 22:10:57 +03:00

38 lines
1.5 KiB
Python

# Generated by Django 3.1.5 on 2021-01-20 16:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
('organisations', '0004_auto_20210108_2013'),
]
operations = [
migrations.AlterField(
model_name='child',
name='profile',
field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='users.profile'),
),
migrations.AlterField(
model_name='teacher',
name='profile',
field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='users.profile'),
),
migrations.CreateModel(
name='Organisator',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=150)),
('surname', models.CharField(blank=True, max_length=150)),
('midname', models.CharField(blank=True, max_length=150)),
('groups', models.ManyToManyField(to='organisations.Group')),
('org', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation')),
('profile', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='users.profile')),
],
),
]