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