﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31430	Bug in django.test.client.Client._handle_redirects.	Jacob Stöhr	Jacob Stöhr	"When handling redirects via the method mentioned above, for example via `client.get(path, follow=True)`, a failure will occur when a response received somewhere in the chain does not bases `HttpResponseRedirectBase` from django.http.response because only instances/objects which are derived from that class have the `url` attribute. The attribute is accessed inside the function mentioned in the summary to determine where to redirect to.

For example:
a view yields a 308 Code which will be an instance of a plain `HttpResponse` object instead of a subclass of `HttpResponseRedirectBase`, thus it does not have a `url` attribute with the url the response is redirecting to. 

I will hand in a patch soon."	Bug	closed	Testing framework	dev	Normal	invalid			Unreviewed	0	0	0	0	0	0
