0
0
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:
Matt Westcott 2017-03-01 11:01:27 +00:00
parent f28130647a
commit 29070191d6

View File

@ -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):