[Answered ]-Connect a button to the edit change form Django

1👍

You would override in the Details page.

See this for an example – How to add custom action button in Django admin form and post the information

So, add the templates to the class that inherits the admin.ModelAdmin and extend it in the template, e.g.,

{% extends 'admin/change_list.html' %}
    <button> Your Custom Button </button>
    <input type="submit" value="{% trans 'Save' %}" class="default" name="_save">
{% endblock %}

This answer should also help.

Leave a comment