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 relates to myrelatedmodule object (as expected), but I don't
how
to retrieve the initial mymodule id.

Is there any hidden object method I could use ?

Any idea ?

Please.

Reply via email to