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: 4.2.7.
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.7a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c72e9f9dd73977df3ae9fd0e3e585be36911c4515293d7fe573d230abf31d278 |
|
MD5 | bc6ff6fab9985862078c1f3a3d2394f1 |
|
BLAKE2b-256 | a3e7c3a95128b9e315faa86627516d1b9392414bcc556bc56d7dcb54bccbf6fb |
Close
Hashes for admin_tool_button-1.0.7a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c28b6027a8db54dafd4219dcafa0a2e2e92a380893f0658b10187cc2717438b3 |
|
MD5 | c7302f7ae233a3c602b1be9b735bbdde |
|
BLAKE2b-256 | e2f6300fdbd8cc40292a2bd1e907d0cb4d6b16ad8604001924364e6b663c18bd |