On Thu, Aug 27, 2009 at 6:58 AM, Matthias Kestenholz<matthias.kestenh...@gmail.com> wrote: > >> On Thu, Aug 27, 2009 at 2:59 PM, ankit <ankit9...@gmail.com> wrote: >>> >>> I am new to django.I having to app in my admin.Know I want to know >>> that how can i redirect user to one app listpage if clicks save on >>> second app.say from app2 to app1 >>> > > You can do this by overriding the ModelAdmin response_change or > response_add method (or both, depending on your needs) you are > registering your model with.
The easiest way I can think of is to capture the response, and check that. For example: class MyModelAdmin(admin.ModelAdmin): def response_change(self, *args, **kwargs): response = super(MyModelAdmin, self).response_change(*args, **kwargs) if 'Location' in response and response['Location'] == "../": #generate your own HttpResponseRedirect else: return response Really though, jumping around the admin like that is potentially really confusing. -- dz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---