Article promote menu reordered

This commit is contained in:
Oleg Lavrovsky 2017-04-11 23:57:09 +02:00
parent 41bc3c036a
commit 0bd8c38f66

View file

@ -78,7 +78,8 @@ class ArticlePage(Page):
date = models.DateField("Date", null=True, blank=True)
on_homepage = models.BooleanField(default=False, verbose_name="Auf der Frontpage anzeigen")
on_homepage = models.BooleanField(default=False, verbose_name="Featured",
help_text="Auf der Frontpage anzeigen")
feed_image = models.ForeignKey(
'wagtailimages.Image',
@ -110,10 +111,12 @@ class ArticlePage(Page):
ImageChooserPanel('feed_image'),
]
promote_panels = [
InlinePanel('related_links', label="Links"),
MultiFieldPanel([
FieldPanel('date'),
FieldPanel('on_homepage'),
InlinePanel('related_links', label="Links"),
MultiFieldPanel(Page.promote_panels, "Common page configuration"),
], heading="Veröffentlichung"),
MultiFieldPanel(Page.promote_panels, "Einstellungen"),
]
parent_page_types = ['home.ArticleIndexPage']
subpage_types = []