mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-10 08:14:53 +00:00
Update creating_pages.rst
This commit is contained in:
parent
e2a3d549f8
commit
04c65833f0
1 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue