﻿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
10194	allow model instance as argument to HttpResponseRedirect constructor	Daniel Pope <dan@…>	Jacob	"Something I do fairly often is 

{{{
return HttpResponseRedirect(model_inst.get_absolute_url())
}}}

It just occurred to me that

{{{
return HttpResponseRedirect(model_inst)
}}}

would be much more concise, and in the long run, more legible.

Obviously this would constitute an association between {{{django.http}}} and {{{django.db.model}}} which I believe we try to avoid in general. Perhaps a more appropriate for such a shortcut would be

{{{
from django.shortcuts import redirect
return redirect(model_inst)
}}}"		closed	HTTP handling	1.0		fixed	shortcut wishlist		Accepted	1	0	1	1	0	0
