Beispiel #1
0
class Migration(migrations.Migration):

    dependencies = [
        ('core', '0003_itemmodel'),
    ]

    operations = [
        migrations.AlterField(
            model_name='itemmodel',
            name='data_product_lid',
            field=models.PositiveIntegerField(
                blank=True,
                default='1605723706',
                null=True,
                verbose_name='id для генерации в шаблоне'),
        ),
        migrations.AlterField(
            model_name='itemmodel',
            name='image',
            field=models.ImageField(
                height_field='image_height',
                upload_to=apps.core.models.image_upload_path,
                verbose_name='Основное фото',
                width_field='image_width'),
        ),
        migrations.AlterField(
            model_name='itemmodel',
            name='image_mouseover',
            field=models.ImageField(
                height_field='image_height',
                upload_to=apps.core.models.image_upload_path,
                verbose_name='Фото при наведении мыши',
                width_field='image_width'),
        ),
    ]
Beispiel #2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Images',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('desc', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('published_date', models.DateTimeField(blank=True, null=True)),
                ('image', models.ImageField(upload_to=apps.core.models.Images.image_path)),
                ('image_thumbnail', imagekit.models.fields.ProcessedImageField(blank=True, upload_to=apps.core.models.Images.image_thumb_path)),
            ],
            options={
                'verbose_name_plural': 'Fotos',
                'verbose_name': 'Foto',
            },
        ),
    ]
Beispiel #3
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('core', '0003_auto_20190502_0524'),
    ]

    operations = [
        migrations.CreateModel(
            name='MovieImage',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 models.ImageField(
                     upload_to=apps.core.models.movie_directory_path_with_uuid)
                 ),
                ('uploaded', models.DateTimeField(auto_now_add=True)),
                ('movie',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='images',
                                   to='core.Movie')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('core', '0002_user_avatar'),
    ]

    operations = [
        migrations.AlterField(
            model_name='user',
            name='avatar',
            field=models.ImageField(
                null=True, upload_to=apps.core.models.upload_directory_path),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('core', '0006_remove_color_priority'),
    ]

    operations = [
        migrations.CreateModel(
            name='ImagePalette',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('likes_count', models.IntegerField(default=1)),
                ('is_featured', models.BooleanField(default=False)),
                ('date_featured', models.DateTimeField(blank=True, null=True)),
                ('image',
                 models.ImageField(
                     upload_to=apps.core.models.ImagePalette.get_upload_path)),
                ('colors',
                 models.ManyToManyField(blank=True,
                                        related_name='image_colors',
                                        to='core.Color')),
                ('likes',
                 models.ManyToManyField(blank=True,
                                        related_name='imagepalette_likes',
                                        to='core.Profile')),
                ('profile',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='core.Profile')),
            ],
            options={
                'verbose_name_plural': 'ImagePalettes',
                'verbose_name': 'ImagePalette',
            },
        ),
        migrations.AlterModelOptions(
            name='colorpalette',
            options={
                'verbose_name': 'ColorPalette',
                'verbose_name_plural': 'ColorPalettes'
            },
        ),
    ]
Beispiel #6
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0007_alter_validators_add_error_messages'),
    ]

    operations = [
        migrations.CreateModel(
            name='GradientColor',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('color', models.CharField(max_length=250)),
                ('percentages', models.IntegerField()),
                ('priority', models.IntegerField()),
            ],
            options={
                'verbose_name': 'GradientColor',
                'verbose_name_plural': 'GradientColors',
            },
        ),
        migrations.CreateModel(
            name='GradientPalette',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('likes_count', models.IntegerField(default=1)),
                ('degrees', models.IntegerField()),
                ('is_featured', models.BooleanField(default=False)),
            ],
            options={
                'verbose_name': 'GradientPalette',
                'verbose_name_plural': 'GradientPalettes',
            },
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     serialize=False,
                     to=settings.AUTH_USER_MODEL)),
                ('avatar',
                 models.ImageField(
                     default='default.png',
                     upload_to=apps.core.models.Profile.get_upload_path)),
            ],
            options={
                'verbose_name': 'Profile',
                'verbose_name_plural': 'Profiles',
            },
        ),
        migrations.AddField(
            model_name='gradientpalette',
            name='likes',
            field=models.ManyToManyField(blank=True,
                                         related_name='palette_likes',
                                         to='core.Profile'),
        ),
        migrations.AddField(
            model_name='gradientpalette',
            name='profile',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='core.Profile'),
        ),
        migrations.AddField(
            model_name='gradientcolor',
            name='palette',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='core.GradientPalette'),
        ),
    ]
Beispiel #7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='File',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created',
                 django_extensions.db.fields.CreationDateTimeField(
                     auto_now_add=True, verbose_name='created')),
                ('modified',
                 django_extensions.db.fields.ModificationDateTimeField(
                     auto_now=True, verbose_name='modified')),
                ('name',
                 models.CharField(max_length=255,
                                  null=True,
                                  verbose_name='Name')),
                ('file',
                 models.FileField(
                     null=True,
                     upload_to=apps.core.models.BaseModel.file_upload_path,
                     verbose_name='File')),
                ('category',
                 models.CharField(blank=True,
                                  choices=[('music', 'Music'),
                                           ('gtp', 'Guitar PRO'),
                                           ('text', 'Text'),
                                           ('video', 'Video')],
                                  default='music',
                                  max_length=255,
                                  null=True,
                                  verbose_name='Category')),
            ],
            options={
                'verbose_name': 'File',
                'verbose_name_plural': 'Files',
            },
        ),
        migrations.CreateModel(
            name='Track',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created',
                 django_extensions.db.fields.CreationDateTimeField(
                     auto_now_add=True, verbose_name='created')),
                ('modified',
                 django_extensions.db.fields.ModificationDateTimeField(
                     auto_now=True, verbose_name='modified')),
                ('is_active',
                 models.BooleanField(default=True, verbose_name='Is active')),
                ('name',
                 models.CharField(max_length=255,
                                  null=True,
                                  verbose_name='Name')),
                ('year',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Year')),
                ('slug',
                 autoslug.fields.AutoSlugField(editable=False,
                                               populate_from='name',
                                               unique_with=('name', ),
                                               verbose_name='Slug')),
                ('image',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=apps.core.models.BaseModel.file_upload_path,
                     verbose_name='Image')),
                ('description',
                 models.TextField(blank=True,
                                  null=True,
                                  verbose_name='Description')),
                ('file',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='tracks',
                                   to='music.File',
                                   verbose_name='File')),
            ],
            options={
                'verbose_name': 'Track',
                'verbose_name_plural': 'Tracks',
                'ordering': ('-created', ),
            },
        ),
        migrations.CreateModel(
            name='TrackFile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sort_order',
                 models.PositiveIntegerField(default=0,
                                             verbose_name='Sort order')),
                ('file',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='related_tracks',
                                   to='music.File',
                                   verbose_name='File')),
                ('track',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='extra_files',
                                   to='music.Track',
                                   verbose_name='Track')),
            ],
            options={
                'verbose_name': 'Track File',
                'verbose_name_plural': 'Track Files',
                'ordering': ('sort_order', ),
            },
        ),
    ]
Beispiel #8
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('music', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='News',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created',
                 django_extensions.db.fields.CreationDateTimeField(
                     auto_now_add=True, verbose_name='created')),
                ('modified',
                 django_extensions.db.fields.ModificationDateTimeField(
                     auto_now=True, verbose_name='modified')),
                ('is_active',
                 models.BooleanField(default=True, verbose_name='Is active')),
                ('title',
                 models.CharField(max_length=255,
                                  null=True,
                                  verbose_name='Title')),
                ('slug',
                 autoslug.fields.AutoSlugField(editable=False,
                                               populate_from='title',
                                               unique_with=('title', ),
                                               verbose_name='Slug')),
                ('preview',
                 models.TextField(blank=True,
                                  null=True,
                                  verbose_name='Preview')),
                ('full_text',
                 models.TextField(blank=True,
                                  null=True,
                                  verbose_name='Full text')),
                ('image',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=apps.core.models.BaseModel.file_upload_path,
                     verbose_name='Image')),
                ('views',
                 models.PositiveIntegerField(default=0, verbose_name='Views')),
                ('author',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='news_author',
                     to=settings.AUTH_USER_MODEL,
                     verbose_name='Author')),
                ('tracks',
                 models.ManyToManyField(blank=True,
                                        related_name='news',
                                        to='music.Track',
                                        verbose_name='Tracks')),
            ],
            options={
                'verbose_name': 'News',
                'verbose_name_plural': 'News',
            },
        ),
    ]
Beispiel #9
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='Users',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('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')),
                ('email',
                 models.EmailField(max_length=254,
                                   unique=True,
                                   verbose_name='Почта')),
                ('account_type',
                 models.IntegerField(choices=[(0, 'Root'),
                                              (1, 'Администратор'),
                                              (2, 'Учитель'), (3, 'Ученик')],
                                     default=3,
                                     verbose_name='Тип аккаунта')),
                ('is_active',
                 models.BooleanField(default=True, verbose_name='Активный')),
                ('is_staff',
                 models.BooleanField(default=False,
                                     verbose_name='Администратор')),
                ('first_name',
                 models.CharField(max_length=100, verbose_name='Имя')),
                ('second_name',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='Отчество')),
                ('surname',
                 models.CharField(max_length=100, verbose_name='Фамилия')),
                ('registration_date',
                 models.DateField(auto_now_add=True,
                                  null=True,
                                  verbose_name='Дата регистрации')),
            ],
            options={
                'verbose_name':
                'Пользователь',
                'verbose_name_plural':
                'Пользователи',
                'permissions':
                [('edit_news', 'Может редактировать статьи в новостном блоке.')
                 ],
            },
            managers=[
                ('objects', apps.core.users.manager.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='AdminMessages',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('date',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Время отправки')),
                ('subject',
                 models.CharField(max_length=100,
                                  verbose_name='Тема сообщения')),
                ('content',
                 models.TextField(max_length=4000,
                                  verbose_name='Текст сообщения')),
                ('is_read',
                 models.BooleanField(default=False,
                                     verbose_name='Прочитанное')),
            ],
            options={
                'verbose_name': 'Сообщение администратору',
                'verbose_name_plural': 'Сообщения администратору',
                'ordering': ['date', 'subject'],
            },
        ),
        migrations.CreateModel(
            name='AverageValues',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('weights_x_values',
                 models.IntegerField(
                     verbose_name='Сумма произведений весов и значений оценок')
                 ),
                ('weights_sum',
                 models.IntegerField(verbose_name='Сумма весов оценок')),
                ('grades_number',
                 models.IntegerField(verbose_name='Количество оценок')),
                ('grades_sum',
                 models.IntegerField(verbose_name='Сумма значений оценок')),
                ('missed',
                 models.IntegerField(
                     default=0, verbose_name='Количество пропущенных уроков')),
            ],
            options={
                'verbose_name': 'Данные об оценках учеников',
            },
        ),
        migrations.CreateModel(
            name='Controls',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=150, verbose_name='Вид работы')),
                ('weight',
                 models.FloatField(default=1, verbose_name='Коэффицент')),
                ('notify',
                 models.BooleanField(default=False,
                                     verbose_name='Оповещать учеников')),
                ('default',
                 models.BooleanField(default=False,
                                     verbose_name='Вид работы по умолчанию')),
            ],
            options={
                'verbose_name': 'Вид работы',
                'verbose_name_plural': 'Виды работ',
            },
        ),
        migrations.CreateModel(
            name='Groups',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
            ],
            options={
                'verbose_name': 'Группа',
                'verbose_name_plural': 'Группы',
            },
        ),
        migrations.CreateModel(
            name='Homework',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('content', models.TextField(blank=True,
                                             verbose_name='Задание')),
            ],
            options={
                'verbose_name': 'Домашнее задание',
                'verbose_name_plural': 'Домашние задания',
            },
        ),
        migrations.CreateModel(
            name='Quarters',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('number',
                 models.IntegerField(choices=[(1, 'I'), (2, 'II'), (3, 'III'),
                                              (4, 'IV')],
                                     unique=True,
                                     verbose_name='Четверть')),
                ('begin', models.DateField(verbose_name='Начало четверти')),
                ('end', models.DateField(verbose_name='Конец четверти')),
            ],
            options={
                'verbose_name': 'Четверть',
                'verbose_name_plural': 'Четверти',
                'ordering': ['number'],
            },
        ),
        migrations.CreateModel(
            name='Subjects',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=100,
                                  unique=True,
                                  verbose_name='Название')),
                ('icon',
                 models.ImageField(blank=True,
                                   upload_to='subject_icons/',
                                   verbose_name='Иконка')),
            ],
            options={
                'verbose_name': 'Предмет',
                'verbose_name_plural': 'Предметы',
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='Admins',
            fields=[
                ('account',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     related_name='admin',
                     serialize=False,
                     to='core.users',
                     verbose_name='Пользователь')),
            ],
            options={
                'verbose_name': 'Администратор',
                'verbose_name_plural': 'Администраторы',
            },
        ),
        migrations.CreateModel(
            name='Students',
            fields=[
                ('account',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     related_name='student',
                     serialize=False,
                     to='core.users',
                     verbose_name='Пользователь')),
                ('president',
                 models.BooleanField(default=False, verbose_name='Староста')),
            ],
            options={
                'verbose_name': 'Ученик',
                'verbose_name_plural': 'Ученики',
                'ordering': ['klass'],
            },
        ),
        migrations.CreateModel(
            name='Teachers',
            fields=[
                ('account',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     related_name='teacher',
                     serialize=False,
                     to='core.users',
                     verbose_name='Пользователь')),
            ],
            options={
                'verbose_name': 'Учитель',
                'verbose_name_plural': 'Учителя',
            },
        ),
        migrations.CreateModel(
            name='Lessons',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('date', models.DateField(verbose_name='Дата')),
                ('theme',
                 models.CharField(blank=True,
                                  max_length=120,
                                  verbose_name='Тема')),
                ('is_planned',
                 models.BooleanField(default=False,
                                     verbose_name='Запланирован')),
                ('control',
                 models.ForeignKey(on_delete=django.db.models.deletion.PROTECT,
                                   to='core.controls',
                                   verbose_name='Контроль')),
                ('group',
                 models.ForeignKey(default=None,
                                   null=True,
                                   on_delete=django.db.models.deletion.PROTECT,
                                   to='core.groups',
                                   verbose_name='Группа')),
                ('quarter',
                 models.ForeignKey(on_delete=django.db.models.deletion.PROTECT,
                                   to='core.quarters',
                                   verbose_name='Четверть')),
            ],
            options={
                'verbose_name': 'Урок',
                'verbose_name_plural': 'Уроки',
                'ordering': ['date'],
            },
        ),
        migrations.CreateModel(
            name='Klasses',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('number',
                 models.IntegerField(choices=[(1, 1), (2, 2), (3, 3), (4, 4),
                                              (5, 5), (6, 6), (7, 7), (8, 8),
                                              (9, 9), (10, 10), (11, 11)],
                                     verbose_name='Класс')),
                ('letter',
                 models.CharField(choices=[('А', 'А'), ('Б', 'Б'), ('В', 'В'),
                                           ('Г', 'Г'), ('Д', 'Д'), ('Е', 'Е'),
                                           ('Ж', 'Ж'), ('З', 'З'), ('И', 'И'),
                                           ('К', 'К')],
                                  max_length=2,
                                  verbose_name='Буква')),
                ('subjects',
                 models.ManyToManyField(to='core.Subjects',
                                        verbose_name='Предметы')),
            ],
            options={
                'verbose_name': 'Класс',
                'verbose_name_plural': 'Классы',
                'ordering': ['number', 'letter'],
            },
        ),
        migrations.CreateModel(
            name='HomeworkFiles',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('file',
                 models.FileField(upload_to=apps.core.models.homework_upload,
                                  verbose_name='Файл')),
                ('homework',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='files',
                                   to='core.homework')),
            ],
        ),
        migrations.AddField(
            model_name='homework',
            name='lesson',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='core.lessons',
                verbose_name='Урок'),
        ),
        migrations.AddField(
            model_name='groups',
            name='klass',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='core.klasses',
                verbose_name='Класс'),
        ),
        migrations.AddField(
            model_name='groups',
            name='subject',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.PROTECT,
                to='core.subjects',
                verbose_name='Предмет'),
        ),
        migrations.CreateModel(
            name='Grades',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('amount',
                 models.IntegerField(default=None,
                                     null=True,
                                     verbose_name='Балл')),
                ('comment',
                 models.TextField(blank=True,
                                  default='',
                                  verbose_name='Комментарий')),
                ('lesson',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='core.lessons',
                                   verbose_name='Урок')),
            ],
            options={
                'verbose_name_plural': 'Оценки',
                'ordering': ['lesson'],
            },
        ),
        migrations.AddConstraint(
            model_name='controls',
            constraint=models.UniqueConstraint(
                condition=models.Q(default=True),
                fields=('default', ),
                name='unique_default_control'),
        ),
        migrations.AddField(
            model_name='averagevalues',
            name='subject',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='core.subjects'),
        ),
        migrations.AddField(
            model_name='adminmessages',
            name='sender',
            field=models.ForeignKey(
                default=None,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to=settings.AUTH_USER_MODEL,
                verbose_name='Отправитель'),
        ),
        migrations.AddField(
            model_name='users',
            name='groups',
            field=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'),
        ),
        migrations.AddField(
            model_name='users',
            name='user_permissions',
            field=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'),
        ),
        migrations.AddField(
            model_name='teachers',
            name='subjects',
            field=models.ManyToManyField(to='core.Subjects',
                                         verbose_name='Предметы'),
        ),
        migrations.AddField(
            model_name='students',
            name='klass',
            field=models.ForeignKey(
                blank=True,
                default=None,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='core.klasses',
                verbose_name='Класс'),
        ),
        migrations.AddField(
            model_name='klasses',
            name='head_teacher',
            field=models.OneToOneField(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name='klass',
                to='core.teachers',
                verbose_name='Классный руководитель'),
        ),
        migrations.AddField(
            model_name='klasses',
            name='teachers',
            field=models.ManyToManyField(related_name='klasses',
                                         to='core.Teachers',
                                         verbose_name='Учителя'),
        ),
        migrations.AddField(
            model_name='groups',
            name='students',
            field=models.ManyToManyField(to='core.Students',
                                         verbose_name='Отображаемые ученики'),
        ),
        migrations.AddField(
            model_name='grades',
            name='student',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='core.students',
                verbose_name='Ученик'),
        ),
        migrations.AddField(
            model_name='averagevalues',
            name='student',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='average',
                to='core.students'),
        ),
        migrations.AlterUniqueTogether(
            name='klasses',
            unique_together={('number', 'letter')},
        ),
        migrations.AlterUniqueTogether(
            name='groups',
            unique_together={('klass', 'subject')},
        ),
        migrations.AlterUniqueTogether(
            name='averagevalues',
            unique_together={('student', 'subject')},
        ),
    ]