Nepovinný obrázek

This commit is contained in:
MaM Web user 2021-09-03 01:12:28 +02:00
parent c3190ebf43
commit 1a7132a8b8
2 changed files with 19 additions and 1 deletions

View file

@ -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'),
),
]

View file

@ -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):