semvec/pypi-packages huggingface dataset:
admin-tool-button 1.0.7a0
Extra tool buttons for Django admin
License: MIT License
Keywords: Django Admin

# 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

```shell
$ pip install admin_tool_button
```

## Usage

Add `admin_tool_button` to `INSTALLED_APPS`. In your `admin.py` add your custom actions like so:

```python
from admin_tool_button.contrib.admin import ButtonActionAdmin


class MyAdmin(ButtonActionAdmin):

    button_actions = ['my_action']

    def my_action(self, request):
        # Perform your custom action
```