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.6a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4e820046716e35413f44bf8518b430b7dc0eb323f82a413600dee6d089c95d9 |
|
MD5 | e6e2c33860d73f7bf6101fa7a47d2e0e |
|
BLAKE2b-256 | a155727c65e77c351cd5213f63d4719a4f05f25a056f1438d88e9f6e60f4d451 |
Close
Hashes for admin_tool_button-1.0.6a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d58b4607dd27553d7b81b781f0d4556b44c6a419626ac3f568e18e19a6e8078 |
|
MD5 | 5ddb641f9d699939cc8765d5a495f7b4 |
|
BLAKE2b-256 | 66770aa37e5b0a07b0805f3c4a12b5eca490dd95ed87daea616bbe251ec654dc |