From 9a20fc7c79d5550f486c0e709fe7432249fd869a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Thu, 10 Aug 2023 09:46:46 +0200 Subject: [PATCH] =?UTF-8?q?Oprava=20drobn=C3=BDch=20chybi=C4=8Dek=20p?= =?UTF-8?q?=C5=99i=20migrac=C3=ADch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/models/__init__.py | 1 + tvorba/migrations/0001_initial.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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')),