summaryrefslogtreecommitdiff
path: root/tests/dates
diff options
context:
space:
mode:
authorFlavio Curella <flavio.curella@gmail.com>2015-07-22 09:43:21 -0500
committerTim Graham <timograham@gmail.com>2015-07-27 18:28:13 -0400
commitc2e70f02653519db3a49cd48f5158ccad7434d25 (patch)
treec0f421a6b0c26a7716c380b3e360fecc74d553fb /tests/dates
parent87d55081ea398c65b2503d22ed3907a9175ec729 (diff)
Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField
Diffstat (limited to 'tests/dates')
-rw-r--r--tests/dates/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dates/models.py b/tests/dates/models.py
index d27c22ff67..58e6d10d91 100644
--- a/tests/dates/models.py
+++ b/tests/dates/models.py
@@ -17,7 +17,7 @@ class Article(models.Model):
@python_2_unicode_compatible
class Comment(models.Model):
- article = models.ForeignKey(Article, related_name="comments")
+ article = models.ForeignKey(Article, models.CASCADE, related_name="comments")
text = models.TextField()
pub_date = models.DateField()
approval_date = models.DateField(null=True)