nest django forms as fields in other forms
Use the package manager pip to install django-nested-form-field.
pip install django-nested-form-field
from django import forms
from nested_form_field import NestedFormField
class MyNestedForm(forms.Form):
title = forms.CharField()
description = forms.CharField()
class MyForm(forms.Form):
nested_form = NestedFormField(MyNestedForm)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.