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.

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-generic-admin-actions-0.2.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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