Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

admin_tool_button-1.0.7a0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

admin_tool_button-1.0.7a0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page