mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 03:57:09 +00:00
rewrite migrations; fix comptitions tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Generated by Django 5.1.6 on 2025-03-01 20:35
|
||||
# Generated by Django 5.1.6 on 2025-03-01 23:48
|
||||
|
||||
import apps.competition.models
|
||||
import datetime
|
||||
@@ -12,7 +12,7 @@ class Migration(migrations.Migration):
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('user', '0002_alter_user_email_alter_user_password_and_more'),
|
||||
('user', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
@@ -22,11 +22,11 @@ class Migration(migrations.Migration):
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('title', models.CharField(max_length=100, verbose_name='название')),
|
||||
('description', models.TextField(verbose_name='описание')),
|
||||
('image_url', models.FileField(blank=True, null=True, upload_to=apps.competition.models.Competition.image_url_upload_to, verbose_name='изображение соревнования')),
|
||||
('image_url', models.ImageField(blank=True, null=True, upload_to=apps.competition.models.Competition.image_url_upload_to, verbose_name='изображение соревнования')),
|
||||
('end_date', models.DateTimeField(blank=True, null=True, verbose_name='дедлайн участия')),
|
||||
('start_date', models.DateTimeField(blank=True, null=True, verbose_name='дедлайн участия')),
|
||||
('type', models.CharField(choices=[('solo', 'Индивидуальный')], max_length=10, verbose_name='тип участия')),
|
||||
('participation_type', models.CharField(choices=[('edu', 'Образовательный'), ('competitive', 'Соревновательный')], max_length=11, verbose_name='тип соревнования')),
|
||||
('type', models.CharField(choices=[('edu', 'Образовательный'), ('competitive', 'Соревновательный')], max_length=11, verbose_name='тип участия')),
|
||||
('participation_type', models.CharField(choices=[('solo', 'Индивидуальный')], max_length=11, verbose_name='тип соревнования')),
|
||||
('participants', models.ManyToManyField(blank=True, editable=False, related_name='participants', to='user.user')),
|
||||
],
|
||||
options={
|
||||
|
||||
Reference in New Issue
Block a user