summaryrefslogtreecommitdiff
path: root/tests/syndication_tests
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/syndication_tests
parent87d55081ea398c65b2503d22ed3907a9175ec729 (diff)
downloaddjango-c2e70f02653519db3a49cd48f5158ccad7434d25.tar.gz
Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField
Diffstat (limited to 'tests/syndication_tests')
-rw-r--r--tests/syndication_tests/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/syndication_tests/models.py b/tests/syndication_tests/models.py
index 166acd69ca..22b0f81fbb 100644
--- a/tests/syndication_tests/models.py
+++ b/tests/syndication_tests/models.py
@@ -21,7 +21,7 @@ class Entry(models.Model):
@python_2_unicode_compatible
class Article(models.Model):
title = models.CharField(max_length=200)
- entry = models.ForeignKey(Entry)
+ entry = models.ForeignKey(Entry, models.CASCADE)
def __str__(self):
return self.title