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()