From 29070191d6a633b36f9655902ba7854376acab80 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Wed, 1 Mar 2017 11:01:27 +0000 Subject: [PATCH] Add on_delete param to ParentalKey --- wagtail/tests/testapp/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/tests/testapp/models.py b/wagtail/tests/testapp/models.py index 543c6f6261..9ee63fe86a 100644 --- a/wagtail/tests/testapp/models.py +++ b/wagtail/tests/testapp/models.py @@ -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):