How to add the custom button which executes a Django admin action to change form page?
You could take a look at the change_form_template and set it to a custom template of yours and override the response_change method: class MyModelAdmin(admin.ModelAdmin): # A template for a customized change view: change_form_template=”path/to/your/custom_change_form.html” def response_change(self, request, obj): opts = self.model._meta pk_value = obj._get_pk_val() preserved_filters = self.get_preserved_filters(request) if “_customaction” in request.POST: # handle the action on … Read more