Skip to content
Snippets Groups Projects
Commit 9ed9c956 authored by jarmil's avatar jarmil
Browse files

Black applied

parent b9f0a665
Branches
No related tags found
2 merge requests!68sync test,!67Vylepšení programových bodů
......@@ -6,18 +6,30 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('program2021', '0001_initial'),
("program2021", "0001_initial"),
]
operations = [
migrations.AddField(
model_name='program2021homepage',
name='headline',
field=models.CharField(blank=True, help_text='Hlavní titulek domovské stránky', max_length=100, null=True, verbose_name='název programu'),
model_name="program2021homepage",
name="headline",
field=models.CharField(
blank=True,
help_text="Hlavní titulek domovské stránky",
max_length=100,
null=True,
verbose_name="název programu",
),
),
migrations.AddField(
model_name='program2021homepage',
name='perex',
field=models.TextField(blank=True, help_text='Text pod titulkem', max_length=512, null=True, verbose_name='perex'),
model_name="program2021homepage",
name="perex",
field=models.TextField(
blank=True,
help_text="Text pod titulkem",
max_length=512,
null=True,
verbose_name="perex",
),
),
]
......@@ -29,21 +29,14 @@ class Program2021HomePage(Page):
help_text="Hlavní titulek domovské stránky",
)
perex = models.TextField(
"perex",
max_length=512,
blank=True,
null=True,
help_text="Text pod titulkem",
"perex", max_length=512, blank=True, null=True, help_text="Text pod titulkem",
)
### PANELS
content_panels = Page.content_panels + [
MultiFieldPanel(
[
FieldPanel("headline"),
FieldPanel("perex"),
],
[FieldPanel("headline"), FieldPanel("perex"),],
heading="Vyhledávací formulář",
),
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment