diff options
| author | Adam Chainz <adam@adamj.eu> | 2016-03-18 14:24:29 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-09-09 17:16:42 -0400 |
| commit | 652bcc6f5fa9084768890488fec5208e082c2add (patch) | |
| tree | c3e6977924fe84329303c980d20b408139dfad8b /tests/model_meta | |
| parent | bae64dd0f13ba247448197ecf83cdc7a80691bb4 (diff) | |
Refs #25415 -- Fixed invalid models in the test suite.
Diffstat (limited to 'tests/model_meta')
| -rw-r--r-- | tests/model_meta/models.py | 4 |
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): |
