Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ListForm(forms.Form):
- def __init__(self, *args, **kwargs):
- super(ListForm, self).__init__(*args, **kwargs)
- self.__setattr__('TESTATTR', property(forms.BooleanField(required=False)))
- # or
- self.__setattr__('TESTATTR', forms.BooleanField(required=False))
Add Comment
Please, Sign In to add comment