Django mixin to easily add custom buttons to any ModelAdmin, change form, or changelist. Current version is 2.2, requires Python >=3.12 and Django >=4.2 (implicitly). The library is actively maintained with regular releases.
pip install django-admin-extra-buttonsVerified import paths — ran on the pinned version, not inferred.
Add a custom button to a ModelAdmin using ExtraButtonsMixin and the button decorator.
Upgrade to Django >=3.2 and Python >=3.8. Review custom get_urls() overrides for compatibility with new URL patterns.
Use 'app_label.permission_codename' string format. For dynamic checks, use Django's perms in the request.
Define button methods separately from list display methods.
Refactor to use decorators (@button, @choice, @link, @view) instead of defining buttons dict.