add note for setting menu default globally (#4244)

pull/4246/head
LB (Ben Johnston) 2018-02-07 00:10:45 +10:00 zatwierdzone przez Matt Westcott
rodzic 87955974bf
commit c85e4a3ff0
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -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
~~~~~~~~~~~~~~~~~~~~~~