1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed reverse accessor check failures in indexes tests.

This commit is contained in:
Adam Chainz 2016-08-15 23:01:56 +01:00 committed by Tim Graham
parent 02c276623d
commit 4f5b7eeb53

View File

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