class MyForm(forms.Form):
    my_field = forms.MultipleChoiceField(choices=SOME_CHOICES, widget=forms
        .CheckboxSelectMultiple())

def clean_my_field(self):
    if len(self.cleaned_data['my_field']) > 3:
        pass
In Django is there a way to display choices as checkboxes?