mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-17 19:51:11 +00:00
Update creating_pages.rst
This commit is contained in:
parent
04c65833f0
commit
98fd81e910
1 changed files with 3 additions and 1 deletions
|
|
@ -178,7 +178,9 @@ Insert the following once at the top of your models.py:
|
|||
import django.db.models.options as options
|
||||
options.DEFAULT_NAMES = options.DEFAULT_NAMES + ('description',)
|
||||
|
||||
Then for each model as necessary, add a description attribute to the model ``Meta``:
|
||||
|
||||
Then for each model as necessary, add a description attribute to the model ``Meta`` class
|
||||
|
||||
|
||||
.. code-block:: python
|
||||
class HomePage(Page):
|
||||
|
|
|
|||
Loading…
Reference in a new issue