Пример #1
0
 def valid_value(self, value):
     self._set_choices(EMailList.get_EMAILLIST_CHOICES())
     return super(EMailListChoiceField,self).valid_value(value)
Пример #2
0
 def __init__(self,data = None, **kwargs):
     super(self.__class__,self).__init__(data, **kwargs)
     self.fields['list_key']._set_choices(EMailList.get_EMAILLIST_CHOICES())