﻿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
13953	Generic CRUD views: support for callable in  post_ACTION_redirect	Alberto Donato	nobody	"Hi,
  the current post_save/delete_redirect mechanism doesn't allow to use dynamically-reversed URLs nor named ones, since it only accepts a string with patterns.

The attached patch allows to use a callable as post_save/delete_redirect parameter, which is called with current object as parameter.
This allows to do both simple name-based redirect and object-based ones.

For delete view, the redirect is calculated before deleting the object, also providing access to current object.

It would also be possible to pass the Request object to the callable, to provide greater flexibility, but IMHO doing something more than a reverse() in the redirect would be beyond the scope of the generic view usage."		closed	Generic views	dev		fixed			Unreviewed	1	0	0	0	0	0
