A lightweight plugin for managing Django formsets with jQuery.
## About this plugin
This [jQuery](http://jquery.com/) plugin helps you create more usable [Django](http://www.djangoproject.com/) formsets by allowing clients to add and remove forms on the client-side.
It was primarily developed by [Stanislaus Madueke](https://github.com/elo80ka), and re-packaged as a static Django app (with a couple shiny new enhancements and more docs) by [The Dallas Morning News](https://github.com/DallasMorningNews/).
This version of this plugin (like its predecessor) is available under the [BSD License]().
****
## Getting started
1. Download this repo or install from PyPI:
```bash
pip install django-dynamic-formsets
```
2. Then add `dynamic_formsets` to your `INSTALLED_APPS` setting and run `python manage.py collectstatic`.
3. You can now make your formsets dynamic by adding the following lines to a template:
```Django
{% load static %}
...
{% comment %}
(Your templated DOM here, possibly something like this:)
{% endcomment %}
<form id="my-form" method="post" action="">
{% csrf_token %}
{{ formset.media }}
{% for form in formset %}
<div class="individual-form">
{{ form.as_p }}
</div>
{% endfor %}
</form>
...
<script src="{% static "dynamic_formsets/jquery.formset.js" %}" type="text/javascript"> </script>
<script type="text/javascript">
$('.individual-form').formset();
</script>
```
****
## Configuration
Once you've followed steps 1 to 3 above, you're ready to customize the formset-handling javascript that's now on your page.
Detailed information about all the settings you can change in the javascript will be added to this repo very soon.
Metadata
Release files for django-dynamic-formsets 0.0.8
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-dynamic-formsets-0.0.8.tar.gz | 11.6 kB | Without provenance | Details for django-dynamic-formsets-0.0.8.tar.gz |
Release files / django-dynamic-formsets-0.0.8.tar.gz
| Download URL | django-dynamic-formsets-0.0.8.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12c49d762a90e1af6b6ca5373777d93fd259fe7ee074ff67a5af5deb9549952b
|
|
BLAKE2b-256 checksum How to use checksums |
16435229f1239f75f14f4d3114d4334dc29e7597e774a3e3d476c904621f3ff8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-dynamic-formsets 0.0.8
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.