Hi Sam,

This works for me:

(r'^mymodule/update/(?P<object_id>\d+)/$',
'django.views.generic.create_update.update_object', dict(mymodule_info,
post_save_redirect="/mymodule/%(id)s/")),

But I have another problem: how to redirect to this page after updating
a related object.
for example:

(r'^myrelatedmodule/update/(?P<object_id>\d+)/$',
'django.views.generic.create_update.update_object',
dict(myrelatedmodule_info, post_save_redirect="/mymodule/%(id)s/")),

Here id relate to myrelatedmodule object (as expected), but I don't how
to retrieve the initial mymodule id.

Any idea ?

Reply via email to