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

uniweb: Restrict menu page types to uniweb pages

parent e3c5b7a4
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,10 @@ class GallerySectionBlock(blocks.StructBlock):
class MenuItemBlock(blocks.StructBlock):
name = blocks.CharBlock(label="název")
page = blocks.PageChooserBlock(label="stránka")
page = blocks.PageChooserBlock(
label="stránka",
page_type=["uniweb.UniwebHomePage", "uniweb.UniwebFlexiblePage"],
)
class Meta:
label = "stránka"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment