Allows to add and delete forms with a click of a button. Can make forms sortable.
## Requirements
Django framework, jQuery and jQuery UI.
## Installation
```
pip install dynamicformset
```
## Usage
Add "dynamicformset" to installed apps in django settings file:
```python
INSTALLED_APPS = (
...
'dynamicformset',
...
)
```
Then it can be used in model:
```python
from django.forms import formset_factory
from dynamicformset import DynamicFormSet
myformset = formset_factory(MyForm, formset=DynamicFormSet, can_order=True, can_delete=True, extra=0)
```
Make sure required css and js files are included in a template:
```
{{ myformset.media.css }}
{{ myformset.media.js }}
```
Metadata
Release files for dynamicformset 0.2
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 | |
|---|---|---|---|---|
| dynamicformset-0.2.tar.gz | 6.2 kB | Without provenance | Details |
Release files / dynamicformset-0.2.tar.gz
| Download URL | dynamicformset-0.2.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47fa8d52f055fb6b3a102e42f4fbe052d4aec7b76bfd02eb114e05c34e4e93b8
|
|
BLAKE2b-256 checksum How to use checksums |
da0f07ae9249edf39a469cee6c92f2ba6d839e5ed27c2c60eb8efba338c0ea9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dynamicformset 0.2
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.