Override the get_submission_class and process_form_submission methods in your page model. If you need to save additional data, you can use a custom form submission model.ĭefine a model that extends .AbstractFormSubmission. content_panels + ), FieldPanel ( 'subject' ), ], "Email" ), ] def get_form_fields ( self ): return self. CASCADE, related_name = 'custom_form_fields' ) class FormPage ( AbstractEmailForm ): intro = RichTextField ( blank = True ) thank_you_text = RichTextField ( blank = True ) content_panels = AbstractEmailForm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |