mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24687 -- Added select_related() validation for nested non-relational fields.
The removed test was added in the original select_related() validation
patch (45d4e43d2d), but there doesn't
seem to be any reason for it.
Thanks Claude Paroz for help and review.
This commit is contained in:
@@ -75,9 +75,7 @@ class ChangeListTests(TestCase):
|
||||
request, Child,
|
||||
*get_changelist_args(m, list_select_related=m.get_list_select_related(request))
|
||||
)
|
||||
self.assertEqual(cl.queryset.query.select_related, {
|
||||
'parent': {'name': {}}
|
||||
})
|
||||
self.assertEqual(cl.queryset.query.select_related, {'parent': {}})
|
||||
|
||||
def test_select_related_as_tuple(self):
|
||||
ia = InvitationAdmin(Invitation, custom_site)
|
||||
|
||||
Reference in New Issue
Block a user