diff --git a/tests/modeladmin/models.py b/tests/modeladmin/models.py index 941032bf776..88a659795a8 100644 --- a/tests/modeladmin/models.py +++ b/tests/modeladmin/models.py @@ -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)