示例#1
0
 def __init__(self, data=None):
     """Initialize the form and set the list of choices for the 'big_brother' field."""
     super(UserForm, self).__init__(data=data)
     self.fields['big_brother'].choices = get_all_big_bro_choices()
示例#2
0
 def __init__(self, data=None):
     """Initialize the form and set the list of choices for the 'big_brother' field."""
     super(UserForm, self).__init__(data=data)
     self.fields['big_brother'].choices = get_all_big_bro_choices()
示例#3
0
 def __init__(self, data=None, instance=None):
     """Initialize the form and set the list of choices for the 'big_brother' field."""
     super(EditProfileForm, self).__init__(data=data, instance=instance)
     self.fields['big_brother'].choices = get_all_big_bro_choices()
示例#4
0
 def __init__(self, data=None, instance=None):
     """Initialize the form and set the list of choices for the 'big_brother' field."""
     super(EditProfileForm, self).__init__(data=data, instance=instance)
     self.fields['big_brother'].choices = get_all_big_bro_choices()