summaryrefslogtreecommitdiff
path: root/tests/ordering
diff options
context:
space:
mode:
authorAdam Chainz <adam@adamj.eu>2016-03-18 14:24:29 +0000
committerTim Graham <timograham@gmail.com>2016-09-09 17:16:42 -0400
commit652bcc6f5fa9084768890488fec5208e082c2add (patch)
treec3e6977924fe84329303c980d20b408139dfad8b /tests/ordering
parentbae64dd0f13ba247448197ecf83cdc7a80691bb4 (diff)
downloaddjango-652bcc6f5fa9084768890488fec5208e082c2add.tar.gz
Refs #25415 -- Fixed invalid models in the test suite.
Diffstat (limited to 'tests/ordering')
-rw-r--r--tests/ordering/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ordering/models.py b/tests/ordering/models.py
index 213a8f5ce8..2c4e9b3308 100644
--- a/tests/ordering/models.py
+++ b/tests/ordering/models.py
@@ -25,7 +25,7 @@ class Author(models.Model):
@python_2_unicode_compatible
class Article(models.Model):
author = models.ForeignKey(Author, models.SET_NULL, null=True)
- second_author = models.ForeignKey(Author, models.SET_NULL, null=True)
+ second_author = models.ForeignKey(Author, models.SET_NULL, null=True, related_name='+')
headline = models.CharField(max_length=100)
pub_date = models.DateTimeField()