django-formfieldset is a simple Django app that provides a mix-in class for admin-like fieldset rendering.
Features
Fieldset functionality similar to ModelAdmin
Shorthand rendering functions with fieldsets both for whole forms and for individual fieldsets
render as P
render as TABLE
render as UL
Template strings are class attributes
Overrides nothing in django.forms.Form
Installation
Add "django-formfieldset" directory to your Python path.
Add "formfieldset" to your INSTALLED_APPS tuple found in your settings file. (optional - to be able to run tests)
Testing & Example
There is an example project in the example/ directory. To run automated tests for django-formfieldset run the following command in example/ directory:
python example/manage.py test formfieldset
To run the example project:
python example/manage.py runserver
Then you can visit http://localhost:8000/ to view the example. Example project also serves as detailed documentation for formfieldset.
Code examples will be highlighted if you have pygments installed.
Usage
Create your form with FieldsetMixin.
Add a fieldsets attribute to your form. See admin docs for detailed explanation.
Render your form with fieldset enabled methods:
You can use iter_fieldsets() for custom form rendering. It will yield Fieldset objects. Fieldsets act as iterators for widgets in them.
You can use as_fieldset_table(), as_fieldset_ul() and as_fieldset_p() methods that act like built-in as_* method except fieldset support.
Tutorials & How-to’s
See Also
Metadata
Release files for django-formfieldset 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-formfieldset-1.1.tar.gz | 6.9 kB | Without provenance | Details for django-formfieldset-1.1.tar.gz |
Release files / django-formfieldset-1.1.tar.gz
| Download URL | django-formfieldset-1.1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
052dbb3742de228bb05b92838c43b5b9d0be3348f2a9bb151eb34c9cae3d7d38
|
|
BLAKE2b-256 checksum How to use checksums |
f003d98904015205356b69bdae00f3b44f0fd36fc1dae2ddcaab4fd14ef5565f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-formfieldset 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.