I am attempting to change the redirected for the django admin save button. What I pasted below works on saving an already existing entry (updating) but not on saving a new one. Any thoughts?
def change_view(self, request, object_id, extra_context=None): result = super(TodoAdmin, self).change_view(request, object_id, extra_context) if not request.POST.has_key('_addanother') and not request.POST.has_key('_continue'): result['Location'] = "/" return result -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.