From 963c9737da732badb295d521a1403ef6a830b5ef Mon Sep 17 00:00:00 2001 From: Marc Bourqui Date: Mon, 25 Dec 2017 13:08:38 +0100 Subject: [PATCH] Fix FK parameters --- constrainedfilefield/tests/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/constrainedfilefield/tests/models.py b/constrainedfilefield/tests/models.py index 550e63a..955ae6e 100644 --- a/constrainedfilefield/tests/models.py +++ b/constrainedfilefield/tests/models.py @@ -36,6 +36,7 @@ class TestContainer(models.Model): class TestElement(models.Model): container = models.ForeignKey( TestContainer, + on_delete=models.CASCADE, related_name='test_elements') the_file = ConstrainedFileField( null=True,