#33807: Suggestion: Admin actions drop-down with opt-groups
-------------------------------------+-------------------------------------
Reporter: Jonas | Owner: nobody
Vacek |
Type: | Status: new
Uncategorized |
Component: | Version: dev
contrib.admin | Keywords: admin, actions,
Severity: Normal | drop-down, optgroup
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-------------------------------------+-------------------------------------
The action dropdown inside of a model's list only accepts a flat list of
the actions (as seen in `actions` example here
https://docs.djangoproject.com/en/4.0/ref/contrib/admin/actions/#actions-
as-modeladmin-methods)
It would be nice to be able to structure this drop-down with opt-groups
https://www.w3schools.com/tags/tag_optgroup.asp
As a suggestion, the "format" for this could be similar to the way Choices
are made as seen in the example for `MEDIA_CHOICES` here
https://docs.djangoproject.com/en/4.0/ref/models/fields/#django.db.models.Field.choices
--
Ticket URL: <https://code.djangoproject.com/ticket/33807>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018195bb68ae-e4dc7497-9ccc-4619-885c-c21460f45b7c-000000%40eu-central-1.amazonses.com.