Refs #25415 -- Fixed invalid models in the test suite.

This commit is contained in:
Adam Chainz 2016-03-18 14:24:29 +00:00 committed by Tim Graham
parent bae64dd0f1
commit 652bcc6f5f
10 changed files with 16 additions and 17 deletions

View file

@ -45,7 +45,7 @@ class Article(models.Model):
body = models.TextField(default='')
reporter = models.ForeignKey(Reporter, models.CASCADE)
response_to = models.ForeignKey('self', models.SET_NULL, null=True)
unmanaged_reporters = models.ManyToManyField(Reporter, through='ArticleReporter')
unmanaged_reporters = models.ManyToManyField(Reporter, through='ArticleReporter', related_name='+')
def __str__(self):
return self.headline