diff options
author | Flavio Curella <flavio.curella@gmail.com> | 2015-07-22 09:43:21 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-07-27 18:28:13 -0400 |
commit | c2e70f02653519db3a49cd48f5158ccad7434d25 (patch) | |
tree | c0f421a6b0c26a7716c380b3e360fecc74d553fb /tests/test_utils | |
parent | 87d55081ea398c65b2503d22ed3907a9175ec729 (diff) | |
download | django-c2e70f02653519db3a49cd48f5158ccad7434d25.tar.gz |
Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField
Diffstat (limited to 'tests/test_utils')
-rw-r--r-- | tests/test_utils/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_utils/models.py b/tests/test_utils/models.py index ca65a9a871..979b04855f 100644 --- a/tests/test_utils/models.py +++ b/tests/test_utils/models.py @@ -21,8 +21,8 @@ class Person(models.Model): @python_2_unicode_compatible class PossessedCar(models.Model): - car = models.ForeignKey(Car) - belongs_to = models.ForeignKey(Person) + car = models.ForeignKey(Car, models.CASCADE) + belongs_to = models.ForeignKey(Person, models.CASCADE) def __str__(self): return self.color |