summaryrefslogtreecommitdiff
path: root/tests/model_meta
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_meta
parentbae64dd0f13ba247448197ecf83cdc7a80691bb4 (diff)
Refs #25415 -- Fixed invalid models in the test suite.
Diffstat (limited to 'tests/model_meta')
-rw-r--r--tests/model_meta/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/model_meta/models.py b/tests/model_meta/models.py
index 7060cf521c..074db093f9 100644
--- a/tests/model_meta/models.py
+++ b/tests/model_meta/models.py
@@ -134,11 +134,11 @@ class CommonAncestor(models.Model):
class FirstParent(CommonAncestor):
- first_ancestor = models.OneToOneField(CommonAncestor, models.SET_NULL, primary_key=True, parent_link=True)
+ first_ancestor = models.OneToOneField(CommonAncestor, models.CASCADE, primary_key=True, parent_link=True)
class SecondParent(CommonAncestor):
- second_ancestor = models.OneToOneField(CommonAncestor, models.SET_NULL, primary_key=True, parent_link=True)
+ second_ancestor = models.OneToOneField(CommonAncestor, models.CASCADE, primary_key=True, parent_link=True)
class Child(FirstParent, SecondParent):