diff --git a/seminar/models/__init__.py b/seminar/models/__init__.py index aebbf6c1..439b4fc6 100644 --- a/seminar/models/__init__.py +++ b/seminar/models/__init__.py @@ -1,3 +1,4 @@ from .base import * from .pomocne import * from .novinky import * +from .nastaveni import * diff --git a/tvorba/migrations/0001_initial.py b/tvorba/migrations/0001_initial.py index a54014c9..40c5bc22 100644 --- a/tvorba/migrations/0001_initial.py +++ b/tvorba/migrations/0001_initial.py @@ -45,7 +45,7 @@ class Migration(migrations.Migration): name='Deadline', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), - ('deadline', models.DateTimeField(default=datetime.datetime(2023, 8, 9, 21, 59, 59, 999999, tzinfo=utc))), + ('deadline', models.DateTimeField(default=django.utils.timezone.make_aware(datetime.datetime.combine(django.utils.timezone.now(), datetime.time.max)))), ('typ', models.CharField(choices=[('cisla', 'Deadline celého čísla'), ('prvni', 'První deadline'), ('prvniasous', 'Sousový a první deadline'), ('sous', 'Sousový deadline')], max_length=32, verbose_name='typ deadlinu')), ('verejna_vysledkovka', models.BooleanField(db_column='verejna_vysledkovka', default=False, verbose_name='veřejná výsledkovka')), ('cislo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='deadline_v_cisle', to='tvorba.Cislo', verbose_name='deadline v čísle')),