You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help_text="\nA label to associate with this particular menu design.\nNote that this label is private / internal and is not used on the dashboard.\nThis is purely to help identify each of the constructed menu designs.\n"
31
+
),
32
+
),
33
+
(
34
+
"is_active",
35
+
models.BooleanField(
36
+
default=False,
37
+
help_text="\nWhether to activate this menu. \nNote that only 1 menu can be active at a time.\nTo switch from 1 active menu to another, \nyou must deactivate the 1st menu and save it before activating and saving the 2nd menu.\n",
38
+
),
39
+
),
40
+
(
41
+
"body",
42
+
wagtail.fields.StreamField(
43
+
[("link", 2)],
44
+
block_lookup={
45
+
0: (
46
+
"wagtail.blocks.TextBlock",
47
+
(),
48
+
{
49
+
"help_text": "\nThe title to display for this menu item.\nAs a general rule of thumb, the title length should be no longer than 60 characters.\n",
50
+
"required": True,
51
+
},
52
+
),
53
+
1: (
54
+
"wagtail.blocks.PageChooserBlock",
55
+
("wagtailcore.Page",),
56
+
{
57
+
"on_delete": django.db.models.deletion.CASCADE,
58
+
"related_name": "+",
59
+
},
60
+
),
61
+
2: (
62
+
"wagtail.blocks.StructBlock",
63
+
[[("title", 0), ("page", 1)]],
64
+
{},
65
+
),
66
+
},
67
+
help_text="\nThe menu is constructed from a grid system of rows and columns.\nThere can be any number of rows and columns.\nBut each column should have at least 1 link.\n",
0 commit comments