Skip to main content

Django mixin to easily add buttons to any ModelAdmin

Project description

django-admin-extra-buttons

Test coverage Lint Pypi Documentation Django Supported Python versions

my image

This is a full rewriting of the original django-admin-extra-url. It provides decorators to easily add custom buttons to Django Admin pages and/or add views to any ModelAdmin

It allows easy creation of wizards, actions and/or links to external resources as well as api only views.

Four decorators are available:

  • @button() to mark a method as extra view and show related button
  • @link() This is used for "external" link, where you don't need to invoke local views.
  • @view() View only decorator, this adds a new url but do not render any button.
  • @choice() Menu like button, can be used to group multiple @views().

Project Links

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_extra_buttons-2.2.1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admin_extra_buttons-2.2.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file django_admin_extra_buttons-2.2.1.tar.gz.

File metadata

File hashes

Hashes for django_admin_extra_buttons-2.2.1.tar.gz
Algorithm Hash digest
SHA256 44302941b39b9bf7ce60dc1430efef86ff2955dbf85a505b0b519a4b96234811
MD5 8c795f2cb230f36d629fe2828d4c1379
BLAKE2b-256 77ce043deafe7570553fd3531e616662bf74352395a4c64b1e04401c2fab5986

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_admin_extra_buttons-2.2.1.tar.gz:

Publisher: release.yml on saxix/django-admin-extra-buttons

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_admin_extra_buttons-2.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_extra_buttons-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 343890744d29c6fe92a70fb1ab3c75c2cc8c5fcf67e7e0863bdd447680bd2944
MD5 20fb4481a9481e8dd243dd4222b1d652
BLAKE2b-256 e446d8cae5891df2600e28487f2cc384403c45ee71c561c77f955145ed1a7a04

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_admin_extra_buttons-2.2.1-py3-none-any.whl:

Publisher: release.yml on saxix/django-admin-extra-buttons

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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