diff --git a/mamweb/migrations/0001_initial.py b/mamweb/migrations/0001_initial.py index e96cb262..b1944e28 100644 --- a/mamweb/migrations/0001_initial.py +++ b/mamweb/migrations/0001_initial.py @@ -8,7 +8,7 @@ from shutil import copytree def zkopiruj_fotky(apps, schema_editor): - copytree("mamweb/static/images/header/", "media/header/", dirs_exist_ok=True) + copytree("mamweb/static/images/header/", "media/header/") # FIXME: bylo tu dirs_exists_ok=True, nekompatibilní s Py 3.7 class Migration(migrations.Migration): diff --git a/seminar/migrations/0089_cislo_datum_preddeadline.py b/seminar/migrations/0089_cislo_datum_preddeadline.py new file mode 100644 index 00000000..0771991b --- /dev/null +++ b/seminar/migrations/0089_cislo_datum_preddeadline.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.16 on 2020-10-13 19:40 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('seminar', '0088_perm_org_a_ucastnik'), + ] + + operations = [ + migrations.AddField( + model_name='cislo', + name='datum_preddeadline', + field=models.DateField(blank=True, help_text='Datum pro příjem řešení, která se otisknou v dalším čísle', null=True, verbose_name='datum předdeadline'), + ), + ] diff --git a/seminar/models.py b/seminar/models.py index 111f57f7..310ce573 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -443,6 +443,9 @@ class Cislo(SeminarModelBase): datum_deadline = models.DateField('datum deadline', blank=True, null=True, help_text='Datum pro příjem řešení úloh zadaných v tomto čísle') + datum_preddeadline = models.DateField('datum předdeadline', blank=True, null=True, + help_text='Datum pro příjem řešení, která se otisknou v dalším čísle') + datum_deadline_soustredeni = models.DateField( 'datum deadline soustředění', blank=True, null=True,