summaryrefslogtreecommitdiff
path: root/tests/model_forms
diff options
context:
space:
mode:
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)