mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-27 08:04:01 +00:00
Add on_delete param to ParentalKey
This commit is contained in:
parent
f28130647a
commit
29070191d6
1 changed files with 1 additions and 1 deletions
|
|
@ -466,7 +466,7 @@ FormPageWithCustomSubmission.content_panels = [
|
|||
|
||||
|
||||
class FormFieldWithCustomSubmission(AbstractFormField):
|
||||
page = ParentalKey(FormPageWithCustomSubmission, related_name='custom_form_fields')
|
||||
page = ParentalKey(FormPageWithCustomSubmission, on_delete=models.CASCADE, related_name='custom_form_fields')
|
||||
|
||||
|
||||
class CustomFormPageSubmission(AbstractFormSubmission):
|
||||
|
|
|
|||
Loading…
Reference in a new issue