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
Close
Hashes for django-generic-admin-actions-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f90760bc99a29331efadccb92a5ff578ca25d896d58e78beb1e3c946608d1211 |
|
MD5 | bb3dc47be494dc4ea3a8232708f35f8f |
|
BLAKE2b-256 | ee8ea438e1064fc3e66073ee4eb2735e3fa2b5213255ac98d102c3eb7b0fb4ce |
Close
Hashes for django_generic_admin_actions-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b762e87db2ab098534b8777bdcf8c353c20c29f5aca6fcc0dedccb243d341e0 |
|
MD5 | d2c9e44f5b1f9a82792911a0304b8d61 |
|
BLAKE2b-256 | ffbf5f8e038530904c52d31f31abe6065d054a405f785fc470b1e5cdd95a5ab1 |