Skip to content

nielslerches/django-nested-form-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-nested-form-field

nest django forms as fields in other forms

Installation

Use the package manager pip to install django-nested-form-field.

pip install django-nested-form-field

Usage

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)

Contributing

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.

License

MIT