Django action to add an intermediate page to parse form data
Project description
django-form-action
Django action to add an intermediate page to parse form data
Installation
pip install django-form-action
Usage
from django.contrib import admin
from form_action import form_action
@form_action(MyForm, description='Some Label')
def my_django_admin_action(modeladmin, request, queryset, form):
print(form.cleaned_data['my_field'])
class MyModelAdmin(admin.ModelAdmin):
actions = [my_django_admin_action]
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
Built Distribution
Close
Hashes for django_form_action-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1239b39fdaf5bbeb5a7c859e5f177b07ce7ce7314ff1118c6aa6457d6122006 |
|
MD5 | b2c8d1ff61b4bb1b2fa538a79549ac54 |
|
BLAKE2b-256 | 0db88600338feded50c8d90b3be90677a71055ddbaa8561c5e04b7a3ee4c52fd |