From 1a7132a8b8a26f3d3e029b9633c35f164d6d9787 Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Fri, 3 Sep 2021 01:12:28 +0200 Subject: [PATCH] =?UTF-8?q?Nepovinn=C3=BD=20obr=C3=A1zek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/migrations/0097_auto_20210903_0112.py | 18 ++++++++++++++++++ seminar/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 seminar/migrations/0097_auto_20210903_0112.py 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):