kopia lustrzana https://github.com/wagtail/wagtail
Documentation: Adding return statement to process_form_submission (#10143)
* Adding missing return statement to FormPage.process_form_submission in the "Custom form submission model" example to make it available to FormPage.render_landing_page, among other methods.pull/9993/head
rodzic
c66b86b756
commit
5f6f640d0d
|
|
@ -694,6 +694,7 @@ Contributors
|
|||
* Julian Bigler
|
||||
* Kenny Wolf
|
||||
* Himanshu Garg
|
||||
* Christopher Wardle
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class FormPage(AbstractEmailForm):
|
|||
return CustomFormSubmission
|
||||
|
||||
def process_form_submission(self, form):
|
||||
self.get_submission_class().objects.create(
|
||||
return self.get_submission_class().objects.create(
|
||||
form_data=form.cleaned_data,
|
||||
page=self, user=form.user
|
||||
)
|
||||
|
|
@ -160,7 +160,7 @@ class FormPage(AbstractEmailForm):
|
|||
return CustomFormSubmission
|
||||
|
||||
def process_form_submission(self, form):
|
||||
self.get_submission_class().objects.create(
|
||||
return self.get_submission_class().objects.create(
|
||||
form_data=form.cleaned_data,
|
||||
page=self, user=form.user
|
||||
)
|
||||
|
|
@ -235,7 +235,7 @@ class FormPage(AbstractEmailForm):
|
|||
return CustomFormSubmission
|
||||
|
||||
def process_form_submission(self, form):
|
||||
self.get_submission_class().objects.create(
|
||||
return self.get_submission_class().objects.create(
|
||||
form_data=form.cleaned_data,
|
||||
page=self, user=form.user
|
||||
)
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue