django-formsetfield

Software Screenshot:
django-formsetfield
Software Details:
Version: 0.1.1
Upload Date: 14 Apr 15
Developer: Mike Yumatov
Distribution Type: Freeware
Downloads: 12

Rating: nan/5 (Total Votes: 0)

Django's form wizard allows you to have only one form or one formset (since 1.4) per step. Using the django-formsetfield app you can have more forms per step. Using this app you can have more formsets per step.

Or maybe you will find other use cases for it.

Installation

1. Install django-formsetfield with pip:

 pip install django-formsetfield

2. Add formsetfield to INSTALLED_APPS.

Usage example

from django import forms
from formsetfield.fields import FormSetField


class AdultForm(forms.Form):

 fullname = forms.CharField()
 passport = forms.CharField()


class ChildForm(forms.Form):

 fullname = forms.CharField()
 birth_certificate = forms.CharField()


class PassengersForm(forms.Form):

 adults = FormSetField(formset_factory(AdultForm))
 children = FormSetField(formset_factory(ChildForm))


Contributing

Feel free to fork, send pull requests or report bugs and issues on github.

Requirements:

  • Python
  • Django

Other Software of Developer Mike Yumatov

Comments to django-formsetfield

Comments not found
Add Comment
Turn on images!