daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ListForm(forms.Form):                                                            
  2.     def __init__(self, *args, **kwargs):                                                
  3.         super(ListForm, self).__init__(*args, **kwargs)                                
  4.         self.__setattr__('TESTATTR', property(forms.BooleanField(required=False)))
  5.     # or
  6.     self.__setattr__('TESTATTR', forms.BooleanField(required=False))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top