mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +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:
parent
5171f56fae
commit
67732a9b18
7 changed files with 31 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue