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
File details
Details for the file django-form-action-1.0.2.tar.gz
.
File metadata
- Download URL: django-form-action-1.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39bff140890df83a76235da82659e4416e31939b5b3bb3149a5dd28a855cf881 |
|
MD5 | 78a054149481f5c91846756304b1de63 |
|
BLAKE2b-256 | 0ae113eecd9f03f76ce0535dd794a97c87ef116bf3258fbe0c2e7e9e804b7aed |
Provenance
File details
Details for the file django_form_action-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: django_form_action-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1239b39fdaf5bbeb5a7c859e5f177b07ce7ce7314ff1118c6aa6457d6122006 |
|
MD5 | b2c8d1ff61b4bb1b2fa538a79549ac54 |
|
BLAKE2b-256 | 0db88600338feded50c8d90b3be90677a71055ddbaa8561c5e04b7a3ee4c52fd |