TODO
Project description
Description
Django-generic-admin-actions provides an easy way to add an action form to a change-list to run generic actions for a specific model independently from the item selection.
Installation
Install from pypi.org:
pip install django-generic-admin-actions
Setup
Add generic_admin_actions to your installed apps:
INSTALLED_APPS = [ 'generic_admin_actions', ... ]
Use the GenericActionsModelAdmin class and add a generic action:
from generic_admin_actions import GenericActionsModelAdmin def my_action(modeladmin, request): # Do some stuff here. class MyModelAdmin(GenericActionsModelAdmin): ... generic_actions = [ my_action, ... ]
Setup with an intermediate page
TODO
Usage
On your model’s change-list-view choose the generic action from the dropdown and press the “Go” button.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-generic-admin-actions-0.1.tar.gz
.
File metadata
- Download URL: django-generic-admin-actions-0.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7f379c51fd73db262e6a29a3c20abe6619a808fea9993cb8056e9651653b6ce |
|
MD5 | cdf1874f8254f4790155aea92c41d949 |
|
BLAKE2b-256 | 5878c8b43a2e031d14cd0bd45995d39a95b98e0ff5c9d8fd533b4fdca19f6552 |
Provenance
File details
Details for the file django_generic_admin_actions-0.1-py3-none-any.whl
.
File metadata
- Download URL: django_generic_admin_actions-0.1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d23790e9702c3661c408229b0edaca9857ed795eb1d3b7f0f3c94ca13d312f4 |
|
MD5 | 6db0357364f00a2693fd56e5aaf24744 |
|
BLAKE2b-256 | d23dfaf7a6a360d328a0385f6c911de86c4ad4ed19dbfe0b252dcf0ec56e4ef6 |