Skip to main content

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

action-button.png

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

django_admin_plugin-0.1.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

django_admin_plugin-0.1.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for django_admin_plugin-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5e62356b803f462c7621f5baa268f64e0edc3133845aa292b481ccc368e4b30d
MD5 8ae8769503071d6232f20659da666bbf
BLAKE2b-256 c8bb8d6b203a2a1eae27db6f8c51f51bffb10c4ae9f614608602ef116caa6406

See more details on using hashes here.

File details

Details for the file django_admin_plugin-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_plugin-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 04b367e643d20b657382d1c85cfd5deca11c91a9d10a01f1f5fed4364c2fe00a
MD5 6efdfdcae4675c214a79f0f54aaa3218
BLAKE2b-256 cbaca8cfc0e4085d6069cd3f6c4afe95664356853b28a7e89445263e2d709271

See more details on using hashes here.

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