mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Return the created submission instance
This commit is contained in:
parent
b6e01515cb
commit
283d282d31
@ -230,7 +230,7 @@ class AbstractForm(Page):
|
||||
For example, if you want to save reference to a user.
|
||||
"""
|
||||
|
||||
self.get_submission_class().objects.create(
|
||||
return self.get_submission_class().objects.create(
|
||||
form_data=json.dumps(form.cleaned_data, cls=DjangoJSONEncoder),
|
||||
page=self,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user