Move content_panels inside FormPage definition.

pull/1938/merge
Rich Brennan 2015-11-24 09:46:55 +00:00 zatwierdzone przez Matt Westcott
rodzic 010838b53e
commit ce57281f6a
1 zmienionych plików z 10 dodań i 11 usunięć

Wyświetl plik

@ -37,8 +37,7 @@ Within the ``models.py`` of one of your apps, create a model that extends ``wagt
intro = RichTextField(blank=True)
thank_you_text = RichTextField(blank=True)
FormPage.content_panels = [
FieldPanel('title', classname="full title"),
content_panels = AbstractEmailForm.content_panels + [
FieldPanel('intro', classname="full"),
InlinePanel('form_fields', label="Form fields"),
FieldPanel('thank_you_text', classname="full"),