summaryrefslogtreecommitdiff
path: root/tests/model_forms
diff options
context:
space:
mode:
authorAdam Chainz <adam@adamj.eu>2016-03-18 14:24:29 +0000
committerTim Graham <timograham@gmail.com>2016-09-09 17:16:42 -0400
commit652bcc6f5fa9084768890488fec5208e082c2add (patch)
treec3e6977924fe84329303c980d20b408139dfad8b /tests/model_forms
parentbae64dd0f13ba247448197ecf83cdc7a80691bb4 (diff)
Refs #25415 -- Fixed invalid models in the test suite.
Diffstat (limited to 'tests/model_forms')
-rw-r--r--tests/model_forms/models.py2
1 files changed, 1 insertions, 1 deletions
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)