Refs #27377 -- Fixed reverse query name clash in test model.

This commit is contained in:
Tim Graham 2016-12-19 10:10:48 -05:00
parent a849ec1880
commit 12c1d6fe8f
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class ValidationTestModel(models.Model):
is_active = models.BooleanField(default=False)
pub_date = models.DateTimeField()
band = models.ForeignKey(Band, models.CASCADE)
best_friend = models.OneToOneField(User, models.CASCADE)
best_friend = models.OneToOneField(User, models.CASCADE, related_name='best_friend')
# This field is intentionally 2 characters long (#16080).
no = models.IntegerField(verbose_name="Number", blank=True, null=True)