Skip to main content

django-admin-changeform-actions

Run pytest Run tox

Replicates the admin actions dropdown (available on a model's changelist page) on each model instance's changeform page.

Instead of targetting a selection the action will target the current model instance only.

Note: Once #12090 makes its way into Django admin (with 6.1, expected in August 2026), this package will hopefully become obsolete!

Installation

Install the package:

pip install django-admin-changeform-actions

Modify your Django project like:

# settings.py

INSTALLED_APPS = [
  "changeform_actions",  # Must be placed before Django's admin app!
  ...
  "django.contrib.admin",
]
# urls.py

urlpatterns = [
  path("", include("changeform_actions.urls"))
]
# admin.py

from changeform_actions import ChangeFormActionsMixin

class MyModelAdmin(ChangeFormActionsMixin, admin.ModelAdmin):
    actions = [...]

Django Settings

# Whether to display an `Action: <name>` success message after running
# an action. Disable this if you want to display no message or a custom
# message, e.g. as part of each action.
CHANGEFORM_ACTIONS_ENABLE_DEFAULT_MESSAGE: bool = True

# Enable this to preselect the last action in the dropdown, which is
# helpful to repeatedly run the same action several times.
CHANGEFORM_ACTIONS_REMEMBER_LAST_ACTION: bool = False

Development Setup

This project uses uv to handle python versions and dependencies.

uv sync

To do a new release, bump the version in pyproject.toml, then:

uv build
uv publish

Tests

uv run pytest

Run test matrix of different python versions VS different django versions:

uv run tox

Metadata

Release files for django-admin-changeform-actions 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-admin-changeform-actions 0.6.1
File Size Uploaded Provenance Actions
django_admin_changeform_actions-0.6.1.tar.gz 60.3 kB Without provenance Details for django_admin_changeform_actions-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-admin-changeform-actions 0.6.1
File Interpreter ABI Platform Actions
django_admin_changeform_actions-0.6.1-py3-none-any.whl Python 3 none any Details for django_admin_changeform_actions-0.6.1-py3-none-any.whl

Total release size: 69.4 kB

Release files / django_admin_changeform_actions-0.6.1.tar.gz

Download URL django_admin_changeform_actions-0.6.1.tar.gz
Size 60.3 kB
Tags Source
SHA-256 checksum
How to use checksums
37e23c8075f10251b1d5a64ae4d8a33ac76e89cc9148814fc6ee9c689110cef7
BLAKE2b-256 checksum
How to use checksums
065530535138d00a69239721af633e53421873179e0e7d7ddbd40229580905eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.3

Release files / django_admin_changeform_actions-0.6.1-py3-none-any.whl

Download URL django_admin_changeform_actions-0.6.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13226d53547efcfff3a88746b8b345338544ca1c6459eb60a957fc23e2894b8b
BLAKE2b-256 checksum
How to use checksums
a5a2aa5a1e0687e7fd2dbca2d1ca3094d86b13c247219f7c61d4a1f386aacc45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.3

Security for django-admin-changeform-actions 0.6.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page