Documentation: Adding Orderable superclass in code example in "Binding Pages to Snippets". If this is not included sorting in InlinePanel won't work so good to include it in documentation.

pull/5997/head
Tomas Walch 2020-04-28 15:15:58 +02:00 zatwierdzone przez Matt Westcott
rodzic 1f421e35f0
commit 72ee81fbe5
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -450,6 +450,7 @@ Contributors
* Sylvain Fankhauser
* Ascani Carlo
* Chris Ranjana
* Tomas Walch
Translators
===========

Wyświetl plik

@ -138,7 +138,7 @@ To attach multiple adverts to a page, the ``SnippetChooserPanel`` can be placed
page = ParentalKey('demo.BookPage', on_delete=models.CASCADE, related_name='advert_placements')
advert = models.ForeignKey('demo.Advert', on_delete=models.CASCADE, related_name='+')
class Meta:
class Meta(Orderable.Meta):
verbose_name = "advert placement"
verbose_name_plural = "advert placements"