diff --git a/tests/indexes/models.py b/tests/indexes/models.py index dc384ab4891..abd3b0584a5 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()