django-composite-form 0.1.2

Helper class to handle form composition

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
Other/Proprietary License
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Roman Dolgiy
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
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.']}

Last updated on December 21st, 2011

requirements

#form composition #Django forms #Django #form #composition #class

Add your review!

SUBMIT