Extra tool buttons for Django admin
Project description
django-admin-tool-button
Custom tool buttons for Django admin
Rationale
Define extra actions buttons for Django admin.
Support
Supports: Python 3.9.
Supports Django Versions: 3.2.
Installation
$ pip install admin_tool_button
Usage
Add admin_tool_button
to INSTALLED_APPS
. In your admin.py
add your custom actions like so:
from admin_tool_button.contrib.admin import ButtonActionAdmin
class MyAdmin(ButtonActionAdmin):
button_actions = ['my_action']
def my_action(self, request):
# Perform your custom action
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 admin_tool_button-1.0.3a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90a3c36b0057e2fdcc9a192296b0a0b89ab4fb6bc251a2bebaf71afd1f3173e |
|
MD5 | ca775ec4aa8de2a2e6e1347f56c67a23 |
|
BLAKE2b-256 | 75c539f48817a41391c5ce79e3e7265d9b3709b863fa947843f17fc798baacf2 |
Close
Hashes for admin_tool_button-1.0.3a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c77d837d2da276bbecccd92d2975030e08a7cc461bb0ca4cd910bfad7b6e23 |
|
MD5 | 7ca4a7cc4e34a002d193a8838974efbf |
|
BLAKE2b-256 | 5e0bcf07c0250bd17c521914c45ce1eb030bd6e6a3da44095b69537e73f5238b |