Refs #27377 -- Fixed reverse query name clash in test model.
This commit is contained in:
parent
a849ec1880
commit
12c1d6fe8f
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue