def clean_my_field(self):
    if len(self.cleaned_data['my_field']) > 3:
        raise forms.ValidationError('Select no more than 3.')
return self.cleaned_data['my_field']
In Django is there a way to display choices as checkboxes?