summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-12-19 10:10:48 -0500
committerTim Graham <timograham@gmail.com>2016-12-19 10:10:48 -0500
commit12c1d6fe8f03f068f6010e3c8e0f441bf2567e7c (patch)
treefd152df478452d2a21d80596f6e707598cef65e8 /tests
parenta849ec1880e6e9926bd04e298c0ded2611cfb4b3 (diff)
Refs #27377 -- Fixed reverse query name clash in test model.
Diffstat (limited to 'tests')
-rw-r--r--tests/modeladmin/models.py2
1 files changed, 1 insertions, 1 deletions
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)