From 4f5b7eeb5346aa317e5ff51662f30240efabc4b9 Mon Sep 17 00:00:00 2001 From: Adam Chainz Date: Mon, 15 Aug 2016 23:01:56 +0100 Subject: [PATCH] Fixed reverse accessor check failures in indexes tests. --- tests/indexes/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/indexes/models.py b/tests/indexes/models.py index dc384ab489..abd3b0584a 100644 --- a/tests/indexes/models.py +++ b/tests/indexes/models.py @@ -19,7 +19,7 @@ class CurrentTranslation(models.ForeignObject): class ArticleTranslation(models.Model): article = models.ForeignKey('indexes.Article', models.CASCADE) - article_no_constraint = models.ForeignKey('indexes.Article', models.CASCADE, db_constraint=False) + article_no_constraint = models.ForeignKey('indexes.Article', models.CASCADE, db_constraint=False, related_name='+') language = models.CharField(max_length=10, unique=True) content = models.TextField()