kopia lustrzana https://github.com/wagtail/wagtail
Merge pull request #1828 from jheasly/patch-1
Docs fix: Need to flip order of class creationpull/1838/head
commit
749258ebbb
|
@ -364,10 +364,6 @@ can be BlogPages or external links. Change ``blog/models.py`` to
|
|||
abstract = True
|
||||
|
||||
|
||||
class BlogIndexRelatedLink(Orderable, RelatedLink):
|
||||
page = ParentalKey('BlogIndexPage', related_name='related_links')
|
||||
|
||||
|
||||
class BlogIndexPage(Page):
|
||||
intro = RichTextField(blank=True)
|
||||
|
||||
|
@ -376,6 +372,10 @@ can be BlogPages or external links. Change ``blog/models.py`` to
|
|||
InlinePanel('related_links', label="Related links"),
|
||||
]
|
||||
|
||||
|
||||
class BlogIndexRelatedLink(Orderable, RelatedLink):
|
||||
page = ParentalKey('BlogIndexPage', related_name='related_links')
|
||||
|
||||
.. figure:: ../_static/images/tutorial/tutorial_7.png
|
||||
:alt: Blog index edit screen
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue