🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

admin-tool-button

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

admin-tool-button

Extra tool buttons for Django admin

1.0.7a0
PyPI
Maintainers
1

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

Keywords

Django Admin

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts