# HG changeset patch # User Lennard de Rijk # Date 1246710553 -7200 # Node ID d7a0ab3f1965744c168ac8399130d574744e4c10 # Parent 3f2484621f1c888f621209a458fb1a6f8e6a3011 Make sure that radio button questions validate correctly and allow only one choice. Reviewed by: Lennard de Rijk diff -r 3f2484621f1c -r d7a0ab3f1965 app/soc/views/helper/surveys.py --- a/app/soc/views/helper/surveys.py Sat Jul 04 14:22:02 2009 +0200 +++ b/app/soc/views/helper/surveys.py Sat Jul 04 14:29:13 2009 +0200 @@ -681,10 +681,9 @@ super(PickManyField, self).__init__(*args, **kwargs) -class PickQuantField(forms.MultipleChoiceField): - """Stub for customizing the multiple choice field. +class PickQuantField(forms.ChoiceField): + """Stub for customizing the choice field. """ - #TODO(james): Ensure that more than one quant cannot be selected def __init__(self, *args, **kwargs): super(PickQuantField, self).__init__(*args, **kwargs)