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.5a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49c5db05bfd50ab955da7467d00c35be84f2ed149360f8ba45a7323871efaf97 |
|
MD5 | b5030fc670c655970e8a47ab9d85b5ee |
|
BLAKE2b-256 | f22f044bff672ad07989adaff95a753095ea49b163ef19e64d60255bac9713c5 |
Close
Hashes for admin_tool_button-1.0.5a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce6f64818fb98b6a110ee3e08687878cc547c70a72f40c905bea116a0ca8ee4b |
|
MD5 | 458d7444e5cb9c9de95f9939d52f0ea9 |
|
BLAKE2b-256 | d159d64cb41cf465b7448b29804684d1c4fbad3aa9f87fcaefa639f9c8babd25 |