Update creating_pages.rst

This commit is contained in:
Dave Cranwell 2014-09-01 16:31:41 +01:00
parent e2a3d549f8
commit 04c65833f0

View file

@ -160,8 +160,8 @@ Make your model names more friendly to users of Wagtail using Django's ``Meta``
class HomePage(Page):
...
class Meta:
verbose_name = "Homepage"
class Meta:
verbose_name = "Homepage"
When users are given a choice of pages to create, the list of page types is generated by splitting your model names on each of their capital letters. Thus a ``HomePage`` model would be named "Home Page" which is a little clumsy. ``verbose_name`` as in the example above, would change this to read "Homepage" which is slightly more conventional.
@ -184,6 +184,6 @@ Then for each model as necessary, add a description attribute to the model ``Met
class HomePage(Page):
...
class Meta:
description = "The top level homepage for your site"
verbose_name = "Homepage"
class Meta:
description = "The top level homepage for your site"
verbose_name = "Homepage"