kopia lustrzana https://github.com/wagtail/wagtail
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.
rodzic
1f421e35f0
commit
72ee81fbe5
|
|
@ -450,6 +450,7 @@ Contributors
|
|||
* Sylvain Fankhauser
|
||||
* Ascani Carlo
|
||||
* Chris Ranjana
|
||||
* Tomas Walch
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue