Skip to main content

TODO

Project description

Run tests for django-generic-admin-actions coveralls badge python: 3.7, 3.8, 3.9,3.9,3.10 django: 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2

Description

Django-generic-admin-actions provides an easy way to add an action form to a change-list to run generic actions for a specific model independently from the item selection.

Installation

Install from pypi.org:

pip install django-generic-admin-actions

Setup

Add generic_admin_actions to your installed apps:

INSTALLED_APPS = [
    'generic_admin_actions',
    ...
]

Use the GenericActionsModelAdmin class and add a generic action:

from generic_admin_actions import GenericActionsModelAdmin

def my_action(modeladmin, request):
    # Do some stuff here.

class MyModelAdmin(GenericActionsModelAdmin):
    ...
    generic_actions = [
        my_action,
        ...
    ]

Setup with an intermediate page

TODO

Usage

On your model’s change-list-view choose the generic action from the dropdown and press the “Go” button.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-generic-admin-actions-0.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

django_generic_admin_actions-0.2-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file django-generic-admin-actions-0.2.tar.gz.

File metadata

File hashes

Hashes for django-generic-admin-actions-0.2.tar.gz
Algorithm Hash digest
SHA256 f90760bc99a29331efadccb92a5ff578ca25d896d58e78beb1e3c946608d1211
MD5 bb3dc47be494dc4ea3a8232708f35f8f
BLAKE2b-256 ee8ea438e1064fc3e66073ee4eb2735e3fa2b5213255ac98d102c3eb7b0fb4ce

See more details on using hashes here.

Provenance

File details

Details for the file django_generic_admin_actions-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_generic_admin_actions-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0b762e87db2ab098534b8777bdcf8c353c20c29f5aca6fcc0dedccb243d341e0
MD5 d2c9e44f5b1f9a82792911a0304b8d61
BLAKE2b-256 ffbf5f8e038530904c52d31f31abe6065d054a405f785fc470b1e5cdd95a5ab1

See more details on using hashes here.

Provenance

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