mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #25415 -- Fixed invalid models in the test suite.
This commit is contained in:
parent
bae64dd0f1
commit
652bcc6f5f
10 changed files with 16 additions and 17 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue