kopia lustrzana https://github.com/wagtail/wagtail
Return the created submission instance
rodzic
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,
|
||||
)
|
||||
|
|
Ładowanie…
Reference in New Issue