diff options
| author | Tim Graham <timograham@gmail.com> | 2016-04-22 12:59:41 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-04-22 12:59:41 -0400 |
| commit | 87338198e921d944cc241e59c827bb9dffef728b (patch) | |
| tree | 2b5abfd97e35159c20ad16b9ca38b106f885ac63 /tests/model_inheritance_regress/models.py | |
| parent | 9e4e20a71c9648f8a1c6397ada40739d4aaa3ec6 (diff) | |
Fixed #26320 -- Deprecated implicit OneToOnField parent_link.
Diffstat (limited to 'tests/model_inheritance_regress/models.py')
| -rw-r--r-- | tests/model_inheritance_regress/models.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/model_inheritance_regress/models.py b/tests/model_inheritance_regress/models.py index ad905db981..b5bc75061d 100644 --- a/tests/model_inheritance_regress/models.py +++ b/tests/model_inheritance_regress/models.py @@ -45,12 +45,6 @@ class ParkingLot(Place): return "%s the parking lot" % self.name -class ParkingLot2(Place): - # In lieu of any other connector, an existing OneToOneField will be - # promoted to the primary key. - parent = models.OneToOneField(Place, models.CASCADE) - - class ParkingLot3(Place): # The parent_link connector need not be the pk on the model. primary_key = models.AutoField(primary_key=True) |
