add note for setting menu default globally (#4244)

This commit is contained in:
LB (Ben Johnston) 2018-02-07 00:10:45 +10:00 committed by Matt Westcott
parent 93aa90fd3f
commit 2a3ed19dec

View file

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