django-subforms

Wrap django forms as fields and fields as dynamic arrays.


Keywords
django, sub, form, nested, widget, json, array, dynamic, forms, python
License
MIT
Install
pip install django-subforms==0.3.0

Documentation

Django Subforms

Coverage Status GitHub Workflow Status PyPI GitHub GitHub Last Commit GitHub Issues Downloads Python Version

pip install django-subforms

Documentation: https://mrthearman.github.io/django-subforms/

Source Code: https://github.com/MrThearMan/django-subforms/

Contributing: https://github.com/MrThearMan/django-subforms/blob/main/CONTRIBUTING.md


This library adds two new fields: NestedFormField, which can wrap forms as fields on another form and thus provide validation for, e.g., a JSON field, and DynamicArrayField, which can wrap fields, including NestedFormField, as dynamically expandable lists of fields.

Example image