I'm sort of stitching together contrib.databrowse (to view) and contrib.admin (to edit), and I'd like to override the *response_change* function in admin.ModelAdmin so that when you click save, it redirects back to the object in databrowse rather than the admin. I know how to do this for a specific model in admin.py, like:
class WhateverAdmin(admin.ModelAdmin):
def response_change(self, request, obj):
# stuff
admin.site.register(Whatever, WhateverAdmin)
but I'd like to apply that to all of my models without just copying the function over and over (i.e. override it in admin.ModelAdmin itself). Where and how should I do that?
Thanks. :)