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.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

django_generic_admin_actions-0.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django-generic-admin-actions-0.1.tar.gz
Algorithm Hash digest
SHA256 f7f379c51fd73db262e6a29a3c20abe6619a808fea9993cb8056e9651653b6ce
MD5 cdf1874f8254f4790155aea92c41d949
BLAKE2b-256 5878c8b43a2e031d14cd0bd45995d39a95b98e0ff5c9d8fd533b4fdca19f6552

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for django_generic_admin_actions-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d23790e9702c3661c408229b0edaca9857ed795eb1d3b7f0f3c94ca13d312f4
MD5 6db0357364f00a2693fd56e5aaf24744
BLAKE2b-256 d23dfaf7a6a360d328a0385f6c911de86c4ad4ed19dbfe0b252dcf0ec56e4ef6

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