From 652bcc6f5fa9084768890488fec5208e082c2add Mon Sep 17 00:00:00 2001 From: Adam Chainz Date: Fri, 18 Mar 2016 14:24:29 +0000 Subject: Refs #25415 -- Fixed invalid models in the test suite. --- tests/model_forms/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/model_forms') diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py index b00e6a2658..0de67eb1f9 100644 --- a/tests/model_forms/models.py +++ b/tests/model_forms/models.py @@ -131,7 +131,7 @@ class Author(models.Model): class Author1(models.Model): - publication = models.OneToOneField(Publication, models.SET_NULL, null=False) + publication = models.OneToOneField(Publication, models.CASCADE, null=False) full_name = models.CharField(max_length=255) -- cgit v1.3