summaryrefslogtreecommitdiff
path: root/tests/update_only_fields
diff options
context:
space:
mode:
Diffstat (limited to 'tests/update_only_fields')
-rw-r--r--tests/update_only_fields/models.py2
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)