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

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.1.2.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.1.2-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_admin_extra_buttons-2.1.2.tar.gz
Algorithm Hash digest
SHA256 52e77691165019542d7cabc7bf7c26bdc957401c372ef80d3d2cd97c4221cf2f
MD5 81588ed67f637d2aba2d9f0ef217b8ff
BLAKE2b-256 addd81a2f884728b83679f014d09b0b82a445aaed200ca5530d4e7bc06c4fdac

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_admin_extra_buttons-2.1.2.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.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_extra_buttons-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4975ba0b8d52427ea1e0b760f426cee8521ec14c300e1f8394023e727056750b
MD5 2a5116842e0e8ebbf93186a8f1340c10
BLAKE2b-256 47d901a949c7a6e41a0bc08dc3017a9ef86942fa86fee7590eb94d2b247a0338

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_admin_extra_buttons-2.1.2-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