django-admin-extra-buttons
Django mixin to easily add buttons to any ModelAdmin
Decision gist · record as of 2026-08-14
Yes. Low install friction, active maintenance, permissive license, and no known vulnerabilities make this a safe choice. It solves a genuine Django admin pain point—adding custom actions without template hacking—and the decorator-based API is straightforward. Suitable for any Django project needing richer admin customization.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django 4.2+ and Python 3.12+; django-stubs must be installed as a runtime dependency.
- Low friction install with a single runtime dependency (django-stubs).
- Active maintenance with recent releases; last commit 2026-05-19.
License · maintenance · safety
permissive license (permissive) — Permissive license (BSD) with no notable restrictions on use, modification, or distribution.
last release 2026-05-19 (87 days) · last repo commit 2026-05-19 · 172 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 155,721 downloads/mo, #10,801 on PyPI
Alternatives
Verify before relying
pip install django-admin-extra-buttons
from django_admin_extra_buttons.decorators import button
from django.contrib import admin
class MyModelAdmin(admin.ModelAdmin):
@button()
def my_action(self, request):
return HttpResponse('Action executed')- Whether django-stubs is used at runtime or only for type checking during development.
- Specific Django versions tested beyond 4.2, 5.2, and 6.0 mentioned in classifiers.
- Performance impact when adding many buttons to a single ModelAdmin.
What it is and what it does
django-admin-extra-buttons is a Django mixin that lets you add custom buttons, links, and views to Django admin pages using simple Python decorators. Instead of modifying templates or writing boilerplate admin code, you decorate methods in your ModelAdmin class with @button(), @link(), @view(), or @choice() to expose them as clickable actions in the admin interface. It handles routing, rendering, and state management automatically.
The package is actively maintained and supports modern Django versions (4.2, 5.2, 6.0) and Python 3.12+. It has a single runtime dependency on django-stubs and installs with low friction. Common use cases include adding custom admin workflows, linking to external resources, building multi-step wizards, and creating menu-like button groups without touching Django's admin templates.
Use it for
- Add a custom 'Export to PDF' button to a ModelAdmin that triggers a background task.
- Create a menu-like button in admin that groups related actions (e.g., 'Send Email', 'Archive', 'Duplicate').
- Link to external tools or dashboards directly from the admin change list or detail page.
- Build a multi-step wizard for complex admin operations (e.g., bulk import with validation).
- Add API-only views accessible from admin without rendering a button in the UI.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, active maintenance, permissive license, and no known vulnerabilities make this a safe choice. It solves a genuine Django admin pain point—adding custom actions without template hacking—and the decorator-based API is straightforward. Suitable for any Django project needing richer admin customization.
Install
django-admin-extra-buttons on PyPI
Before you install
Low friction install with a single runtime dependency (django-stubs). Active maintenance with recent releases; last commit 2026-05-19. Supports Django 4.2, 5.2, and 6.0 with Python 3.12+.
Requires Django 4.2+ and Python 3.12+; django-stubs must be installed as a runtime dependency.
License in practice
Permissive license (BSD) with no notable restrictions on use, modification, or distribution.
Quickstart
pip install django-admin-extra-buttons
from django_admin_extra_buttons.decorators import button
from django.contrib import admin
class MyModelAdmin(admin.ModelAdmin):
@button()
def my_action(self, request):
return HttpResponse('Action executed')
Verify before relying
- Whether django-stubs is used at runtime or only for type checking during development.
- Specific Django versions tested beyond 4.2, 5.2, and 6.0 mentioned in classifiers.
- Performance impact when adding many buttons to a single ModelAdmin.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedjango-stubs |
| Maintenance | Actively maintained 87 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 155,721 / month, #10,801 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules |
Evidence: django_admin_extra_buttons-2.2.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django admin extra actions”
- django-admin-extra-buttonsAdds custom buttons, links, and views to Django admin pages through…
- django-object-actionsAdds custom action buttons to Django admin object detail and…
- django-logentry-adminRegisters Django's built-in LogEntry model in the admin site, making…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also django-object-actions · django-adminplus · django-admin-sortable2 · django-annoying · wagtail-modeladmin · django-extra-views · django-admin-data-views · django-decorator-include · django-admin-inline-paginator-plus · django-admin-inline-paginator