code: def change_view(self, request, object_id, form_url='', extra_context={}):
          
          extra_context['buttons_link'] = self.buttons_link
          extra_context['buttons_form'] = self.buttons_form
          extra_context['button_object_id'] = object_id
          return super(ButtonableModelAdmin, self).change_view(request, object_id, form_url, extra_context)
docs: It adds ButtonLinks and ButtonForms to extra_context used in the change_form template