> Also, I don't believe post_url would allow you to use something like
the new object id in your url.

I needed this capability (I have wizard-like interfaces derived from
the admin pages), and ended up modifying change_stage so it read
something like this:
  redir = redir_dict.get(None, '../../') # actually I just used a
post_url arg like in add_stage
  if redir.find('%s') >= 0:
     redir = redir % pk_value
  return httpwrappers.HttpResponseRedirect(redir)

and I pass in post_url strings like '/report1/%s/'

Still this only works in simple situations (e.g. you cannot derive
other info from the POST like perhaps a date field as well, to format a
url like '/report1/123/2006/01/') so I think there is still value in
custom after_change_action methods.

 -rob

Reply via email to