mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Add on_delete param to ParentalKey
This commit is contained in:
parent
f28130647a
commit
29070191d6
@ -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 New Issue
Block a user