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

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

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)