summaryrefslogtreecommitdiff
path: root/tests/basic/models.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-11-20 10:31:33 -0500
committerTim Graham <timograham@gmail.com>2015-11-21 10:34:01 -0500
commit54e2e688e1cfbdb37dfa5dd3b3ffdf2af12b4423 (patch)
treece871cf187117274c4b1b5b9e84a199e985834b1 /tests/basic/models.py
parentccc8f67b7760dd12faf6007f12a672a8e03f4d88 (diff)
Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey w/on_delete=SET_NULL.
Diffstat (limited to 'tests/basic/models.py')
-rw-r--r--tests/basic/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basic/models.py b/tests/basic/models.py
index 0e85087d32..91fbe7d648 100644
--- a/tests/basic/models.py
+++ b/tests/basic/models.py
@@ -34,6 +34,7 @@ class SelfRef(models.Model):
null=True, blank=True,
related_name='+',
)
+ article = models.ForeignKey(Article, models.SET_NULL, null=True, blank=True)
def __str__(self):
# This method intentionally doesn't work for all cases - part