'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, admin.site)
    request = self.factory.get(u'/child/')
    cl = ChangeList(request, Child, m.list_display, m.list_display_links, m.list_filter, m.date_hierarchy, m.search_fields, m.list_select_related, m.list_per_page, m.list_max_show_all, m.list_editable, m)
    self.assertEqual(cl.queryset.query.select_related, {u'parent': {u'name': {}}})
