Alex Rivera | Logout

Redirect on admin Save

Asked 2009-08-27T09:11:54.720
32

How can I redirect a user to different app on Save?

I have two app, say app1 and app2. If a user clicks on Save in app2 then it should be redirected to app1 rather then the default page.

I don't want to do a customform.

Edit
Report

1 Answer

-9

def change_view(self, request, object_id,extra_context=None):

result = super(mymodeladmin, self).change_view(request, object_id, extra_context)

result['Location'] = "your location"

return result
answered 2009-08-31T09:00:51.807

Your Answer