mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-26 09:34:50 +00:00
add note for setting menu default globally (#4244)
This commit is contained in:
parent
93aa90fd3f
commit
2a3ed19dec
1 changed files with 6 additions and 1 deletions
|
|
@ -92,9 +92,14 @@ Database fields
|
|||
|
||||
Toggles whether the page should be included in site-wide menus.
|
||||
|
||||
This is used by the :meth:`~wagtail.core.query.PageQuerySet.in_menu` QuerySet filter.
|
||||
|
||||
Defaults to ``False`` and can be overridden on the model with ``show_in_menus_default = True``.
|
||||
|
||||
This is used by the :meth:`~wagtail.core.query.PageQuerySet.in_menu` QuerySet filter.
|
||||
.. note::
|
||||
|
||||
To set the global default for all pages, set ``Page.show_in_menus_default = True`` once where you first import the ``Page`` model.
|
||||
|
||||
|
||||
Methods and properties
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Reference in a new issue