'An assertion is raised if the redirect location doesn\'t preserve GET parameters'

def test_lost_query(self):

    response = self.client.get('/redirect_view/', {'var': 'value'})
    try:
        self.assertRedirects(response, '/get_view/')
    except AssertionError as e:
        self.assertIn("Response    redirected    to    '/get_view/?var=value',    expected    '/get_view/'", str(e))
    try:
        self.assertRedirects(response, '/get_view/', msg_prefix='abc')
    except AssertionError as e:
        self.assertIn("abc:    Response    redirected    to    '/get_view/?var=value',    expected    '/get_view/'", str(e))
