0👍
some_field = forms.MultipleChoiceField(
choices=SOMECHOICE,
widget=forms.SelectMultiple(),
help_text='',
label='',
required=True,
error_messages={'required': "This field is required (by default the value should be 'DEFAULT')."},
)
- [Answer]-Django – current/request user is not passed in the template
- [Answer]-How can I get my django-ckeditor installation to recognize?
- [Answer]-ModelForm For Registration HttpResponseError
- [Answer]-Django – MultipleCheckBoxSelector with m2m field – How to add object instead of save_m2m()
- [Answer]-Will Flat Design cause slow loading of page
Source:stackexchange.com