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/update_only_fields | |
parent | 87d55081ea398c65b2503d22ed3907a9175ec729 (diff) | |
download | django-c2e70f02653519db3a49cd48f5158ccad7434d25.tar.gz |
Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField
Diffstat (limited to 'tests/update_only_fields')
-rw-r--r-- | tests/update_only_fields/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/update_only_fields/models.py b/tests/update_only_fields/models.py index f2903b5bae..a3be5088a2 100644 --- a/tests/update_only_fields/models.py +++ b/tests/update_only_fields/models.py @@ -24,7 +24,7 @@ class Person(models.Model): class Employee(Person): employee_num = models.IntegerField(default=0) - profile = models.ForeignKey('Profile', related_name='profiles', null=True) + profile = models.ForeignKey('Profile', models.SET_NULL, related_name='profiles', null=True) accounts = models.ManyToManyField('Account', related_name='employees', blank=True) |