Nepovinný obrázek
This commit is contained in:
parent
c3190ebf43
commit
1a7132a8b8
2 changed files with 19 additions and 1 deletions
18
seminar/migrations/0097_auto_20210903_0112.py
Normal file
18
seminar/migrations/0097_auto_20210903_0112.py
Normal 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'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -946,7 +946,7 @@ class Tema(Problem):
|
||||||
on_delete=models.PROTECT)
|
on_delete=models.PROTECT)
|
||||||
|
|
||||||
abstrakt = models.TextField('Abstrakt na rozcestník', blank=True)
|
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
|
@cached_property
|
||||||
def kod_v_rocniku(self):
|
def kod_v_rocniku(self):
|
||||||
|
|
Loading…
Reference in a new issue