django-composite-form

  141 downloads
0.1.2 Other/Proprietary License
  not rated
Helper class to handle form composition

description

download

specifications

django-composite-form is a helper class to handle Django form composition.

Usage:

class ProfileAddressForm(forms.Form):
 address = forms.CharField()


class ProfileBirthDayForm(forms.Form):
 birthday = forms.DateField()


class ProfileForm(CompositeForm):
 form_list = [ProfileAddressForm, ProfileBirthDayForm]


profile_form = ProfileForm({"address": "13 Test St"})
assert profile_form.errors == {'birthday': [u'This field is required.']}
READ MORE   
Last updated on December 21st, 2011

0 User reviews so far.

SUBMIT