'Ensure that the to_field GET parameter is preserved when a search
is performed. Refs #10918.'

def test_with_fk_to_field(self):

    response = self.client.get((u'/test_admin/admin/auth/user/?q=joe&%s=id' % TO_FIELD_VAR))
    self.assertContains(response, u'\n1    user\n')
    self.assertContains(response, (u'<input    type="hidden"    name="%s"    value="id"/>' % TO_FIELD_VAR), html=True)
