From 12c1d6fe8f03f068f6010e3c8e0f441bf2567e7c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 19 Dec 2016 10:10:48 -0500 Subject: [PATCH] Refs #27377 -- Fixed reverse query name clash in test model. --- tests/modeladmin/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modeladmin/models.py b/tests/modeladmin/models.py index 941032bf77..88a659795a 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)