Useful plugins to enhance django admin
Project description
Django Admin Plugin
Django Admin Plugins to enhance django admin abilities
Quickstart
1 - Install with pip
:
pip install django-admin-plugin
Quickstart
# admin.py
from django_admin_plugin.admin import ActionButton
from django_admin_plugin.admin import ActionButtonAdmin
class MyCustomAdmin(ActionButtonAdmin):
action_buttons = (
ActionButton(
name="Activate", model_function="activate", color="green"
),
ActionButton(
name="Deactivate", model_function="deactivate", color="red"
),
)
INSTALLED_APPS = [
...
"django_admin_plugin",
]
Initialize And Sync
1 - Create action button permissions
python manage.py init_admin_plugin
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
Built Distribution
File details
Details for the file django_admin_plugin-0.1.5.tar.gz
.
File metadata
- Download URL: django_admin_plugin-0.1.5.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e62356b803f462c7621f5baa268f64e0edc3133845aa292b481ccc368e4b30d |
|
MD5 | 8ae8769503071d6232f20659da666bbf |
|
BLAKE2b-256 | c8bb8d6b203a2a1eae27db6f8c51f51bffb10c4ae9f614608602ef116caa6406 |
File details
Details for the file django_admin_plugin-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: django_admin_plugin-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b367e643d20b657382d1c85cfd5deca11c91a9d10a01f1f5fed4364c2fe00a |
|
MD5 | 6efdfdcae4675c214a79f0f54aaa3218 |
|
BLAKE2b-256 | cbaca8cfc0e4085d6069cd3f6c4afe95664356853b28a7e89445263e2d709271 |