Welcome to django-generic-admin-actions
Description
Django-generic-admin-actions are admin actions without an item selection. They work exactly like original admin actions but without taking a queryset. This is useful for actions that are model (and not object) related or that should manipulate model objects as a whole.
Installation
Install from pypi.org:
pip install django-generic-admin-actions
Getting started
Add generic_admin_actions to your installed apps:
INSTALLED_APPS = [
'generic_admin_actions',
'django.contrib.admin',
...
]
Since we overwrite the change_list.html template the app must be listed before django’s admin-site.
Use the GenericActionsMixin for your ModelAdmin classes and add some actions:
from django.contrib import admin
from generic_admin_actions import GenericActionsMixin
def my_action(modeladmin, request):
# Do some stuff here.
class MyModelAdmin(GenericActionsMixin, admin.ModelAdmin):
...
generic_actions = [
my_action,
...
]
Generic admin actions working all the same as original admin actions with the difference that their don’t take a queryset. So for more advanced setups like actions with intermediate pages please follow django’s official documentation.
Usage
On your model’s change-list-view choose the generic action from the dropdown and press the “Go” button.
Metadata
Release files for django-generic-admin-actions 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_generic_admin_actions-0.4.tar.gz | 11.3 kB | Without provenance | Details for django_generic_admin_actions-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_generic_admin_actions-0.4-py3-none-any.whl | Python 3 | none | any | Details for django_generic_admin_actions-0.4-py3-none-any.whl |
Total release size: 57.6 kB
Release files / django_generic_admin_actions-0.4.tar.gz
| Download URL | django_generic_admin_actions-0.4.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e76826162eb5bf80301eaa37180994983cf9767244b5ad23ddfcf78490fb05b3
|
|
BLAKE2b-256 checksum How to use checksums |
9653506f7093bb1bc7264b89b8102509a74ca89bfcf97525f75842d5186af1db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / django_generic_admin_actions-0.4-py3-none-any.whl
| Download URL | django_generic_admin_actions-0.4-py3-none-any.whl |
|---|---|
| Size | 46.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0fd3ea7994f6c618f86ec2f9b89bc694e424091b030ba362af20fb1144bf8dc
|
|
BLAKE2b-256 checksum How to use checksums |
5742783fe6254f23eb579f2fee204e93fc1c2ae35a28bb5979e867834304c487
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for django-generic-admin-actions 0.4
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.