'Regression test for #10348: ChangeList.get_queryset() shouldn\'t
overwrite a custom select_related provided by ModelAdmin.get_queryset().'

def test_select_related_preserved(self):

    m = ChildAdmin(Child, custom_site)
    request = self.factory.get('/child/')
    cl = ChangeList(request, Child, *get_changelist_args(m, list_select_related=m.get_list_select_related(request)))
    self.assertEqual(cl.queryset.query.select_related, {'parent': {}})
