Updated reasoning for Page suffix, fixes #1927

Fixed typo
pull/1928/head
Alex Gleason 2015-11-16 18:29:03 +00:00
rodzic 5c6903fe00
commit 6a0b576376
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -86,9 +86,9 @@ This example represents a typical blog post:
FieldPanel('url'),
]
.. tip::
.. important::
To keep track of ``Page`` models and avoid class name clashes, it can be helpful to suffix model class names with "Page" e.g BlogPage, ListingIndexPage.
Ensure that none of your field names are the same as your class names. This will cause errors due to the way Django handles relations (`read more <https://github.com/torchbox/wagtail/issues/503>`_). In our examples we have avoided this by appending "Page" to each model name.
Writing page models
@ -410,7 +410,7 @@ Friendly model names
You can make your model names more friendly to users of Wagtail by using Django's internal ``Meta`` class with a ``verbose_name``, e.g.:
.. code-block:: python
class HomePage(Page):
...