app/soc/views/helper/surveys.py
changeset 2530 d7a0ab3f1965
parent 2527 ce657149b90a
child 2533 941732c52b67
equal deleted inserted replaced
2529:3f2484621f1c 2530:d7a0ab3f1965
   679 
   679 
   680   def __init__(self, *args, **kwargs):
   680   def __init__(self, *args, **kwargs):
   681     super(PickManyField, self).__init__(*args, **kwargs)
   681     super(PickManyField, self).__init__(*args, **kwargs)
   682 
   682 
   683 
   683 
   684 class PickQuantField(forms.MultipleChoiceField):
   684 class PickQuantField(forms.ChoiceField):
   685   """Stub for customizing the multiple choice field.
   685   """Stub for customizing the choice field.
   686   """
   686   """
   687   #TODO(james): Ensure that more than one quant cannot be selected
       
   688 
   687 
   689   def __init__(self, *args, **kwargs):
   688   def __init__(self, *args, **kwargs):
   690     super(PickQuantField, self).__init__(*args, **kwargs)
   689     super(PickQuantField, self).__init__(*args, **kwargs)
   691 
   690 
   692 
   691