Merge pull request #1828 from jheasly/patch-1

Docs fix: Need to flip order of class creation
pull/1838/head
Matt Westcott 2015-10-15 11:40:45 +01:00
commit 749258ebbb
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

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