Update creating_pages.rst

This commit is contained in:
Dave Cranwell 2014-09-01 16:33:15 +01:00
parent 04c65833f0
commit 98fd81e910

View file

@ -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):