﻿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
16327	"""save as new"" redirects to list view instead of newly-created item"	candlerb	Markus Amalthea Magnuson	"I have a model with `save_as = True`

After browsing to the model, changing some parameters and clicking ""Save As"", the browser redirects to the list of all objects instead of the newly-saved model instance.

There is code in `response_change` which looks like it is supposed to handle this case. However, after putting in some sys.stderr.write's, I see that the request is actually ending up in `response_add` instead :-(

The attached one-line patch to django/contrib/admin/options.py fixes it for me. However I'm not sure if that's right for all circumstances, nor whether the code in response_change which tests for `""_saveasnew""` is always unused and should also be removed.
"	Bug	closed	contrib.admin	1.3	Normal	fixed	saveasnew		Accepted	1	0	0	0	0	0
