diff --git a/seminar/migrations/0097_auto_20210903_0112.py b/seminar/migrations/0097_auto_20210903_0112.py new file mode 100644 index 00000000..5704c808 --- /dev/null +++ b/seminar/migrations/0097_auto_20210903_0112.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.24 on 2021-09-02 23:12 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('seminar', '0096_fix_zamereni'), + ] + + operations = [ + migrations.AlterField( + model_name='tema', + name='obrazek', + field=models.ImageField(blank=True, null=True, upload_to='', verbose_name='Obrázek na rozcestník'), + ), + ] diff --git a/seminar/models.py b/seminar/models.py index 6969b91d..08f05df0 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -946,7 +946,7 @@ class Tema(Problem): on_delete=models.PROTECT) abstrakt = models.TextField('Abstrakt na rozcestník', blank=True) - obrazek = models.ImageField('Obrázek na rozcestník', null=True) + obrazek = models.ImageField('Obrázek na rozcestník', null=True, blank=True) @cached_property def kod_v_rocniku(self):