admin-tool-button-1.0.5a0
توضیحات
Extra tool buttons for Django admin
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | admin-tool-button-1.0.5a0 |
| نام | admin-tool-button |
| نسخه کتابخانه | 1.0.5a0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bram Boogaard |
| ایمیل نویسنده | padawan@hetnet.nl |
| آدرس صفحه اصلی | https://github.com/bboogaard/admin_tool_button |
| آدرس اینترنتی | https://pypi.org/project/admin-tool-button/ |
| مجوز | MIT License |
# 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: 3.2.
## 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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | pytest |
| - | pytest-cov |
| ==4.5.2 | pytest-django |
| ==3.2 | django |
نحوه نصب
نصب پکیج whl admin-tool-button-1.0.5a0:
pip install admin-tool-button-1.0.5a0.whl
نصب پکیج tar.gz admin-tool-button-1.0.5a0:
pip install admin-tool-button-1.0.5a0.tar.gz