Description
Improve the usability of your admin action dropdown by using option groups and the action’s docstrings as title tags.
Installation
Install from pypi.org:
pip install django-grouped-admin-actions
Usage
Use the GroupedAdminActionsMixin in your ModelAdmin classes:
from django.contrib import admin
from grouped_admin_actions.admin import GroupedAdminActionsMixin
from .models import YourModel
@admin.register(YourModel)
class YourModelAdmin(GroupedAdminActionsMixin, admin.ModelAdmin):
actions = [
'action_one',
'action_two',
'action_three',
...
]
Setup your admin actions with meaningful docstrings and use action groups as decorator:
from grouped_admin_actions.admin import action_group
group_one = ActionGroup("Action 1")
group_two = ActionGroup("Action 2")
@group_one
def action_one(modeladmin, request, queryset):
"""This is action one in group 1."""
...
@group_one
def action_two(modeladmin, request, queryset):
"""This is action two in group 1."""
...
@group_two
def action_three(modeladmin, request, queryset):
"""This is action three in group 2."""
...
Now you get a grouped action dropdown in your dango admin changelist views with the action’s docstring as title tag of each option.
Metadata
Release files for django-grouped-admin-actions 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_grouped_admin_actions-1.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_grouped_admin_actions-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / django_grouped_admin_actions-1.0.tar.gz
| Download URL | django_grouped_admin_actions-1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
577ec4c8a3c5ddb025bc7c4a2d32f0810ac4958d6684dc8325109eb1aa9f49bf
|
|
BLAKE2b-256 checksum How to use checksums |
bfd01002344f13b74c76efe2f1e2d68c5cce2d410499457e1546002fd0cbe16f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency logRelease files / django_grouped_admin_actions-1.0-py3-none-any.whl
| Download URL | django_grouped_admin_actions-1.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd4cc9d803d291be4e1c69af050def9ef35e248f4d6bcb989cf1fdac2c161736
|
|
BLAKE2b-256 checksum How to use checksums |
3b8725931b49bae173448eaed4d34a75d85e8194e72efd803bf3e94e4e1eba25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.
Transparency log