Skip to content
Snippets Groups Projects
Commit 8a8108c5 authored by jan.bednarik's avatar jan.bednarik
Browse files

senat campaign: Restrict tags in RichText on homepage

parent 78e5f3de
No related branches found
No related tags found
1 merge request!17senat campaign: Restrict tags in RichText on homepage
Pipeline #614 passed
...@@ -40,8 +40,16 @@ class SenatCampaignHomePage(Page, CalendarMixin): ...@@ -40,8 +40,16 @@ class SenatCampaignHomePage(Page, CalendarMixin):
) )
claim = models.CharField("slogan pod fotkou", max_length=250, blank=True, null=True) claim = models.CharField("slogan pod fotkou", max_length=250, blank=True, null=True)
# about # about
about_left = RichTextField("kdo jsem (levý sloupec)", blank=True) about_left = RichTextField(
about_right = RichTextField("kdo jsem (pravý sloupec)", blank=True) "kdo jsem (levý sloupec)",
blank=True,
features=["h4", "bold", "italic", "ol", "ul", "link", "document-link"],
)
about_right = RichTextField(
"kdo jsem (pravý sloupec)",
blank=True,
features=["h4", "bold", "italic", "ol", "ul", "link", "document-link"],
)
about_gallery = StreamField( about_gallery = StreamField(
[("photo", ImageChooserBlock(label="fotka"))], [("photo", ImageChooserBlock(label="fotka"))],
verbose_name="kdo jsem - galerie", verbose_name="kdo jsem - galerie",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment