[Answered ]-Django single checkbox questionaire

2👍

Since you only want one item to be selectable, you should definitely be using a ChoiceField for this, and should use a radio input / widget (check boxes are not the right input type for this use case):

CHOICES=(
    (1,"1"),
    (2,"2"),
    (3,"3"),
    (4,"4"),
    (5,"5")
) 
satisfaction = forms.ChoiceField(
    choices=CHOICES, 
    widget=forms.RadioSelect()
)

Leave a comment