Make sure that radio button questions validate correctly and allow only one choice.
Reviewed by: Lennard de Rijk
--- 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)