asyncee / django-easy-select2

Select2 input widget for django selectable fields.
http://django-easy-select2.readthedocs.io/en/latest/
MIT License
214 stars 28 forks source link

Docs : Usage of Select2Multiple error #43

Closed zhaojiejoe closed 6 years ago

zhaojiejoe commented 6 years ago

EVN django 1.11.7 class Form(forms.Form): field = forms.ModelChoiceField(queryset=qs, widget=Select2Multiple( select2attrs={'width': 'auto'} ))

should be

class Form(forms.Form): field = forms.ModelMultipleChoiceField(queryset=qs, widget=Select2Multiple( select2attrs={'width': 'auto'} ))

asyncee commented 6 years ago

Updated documentation.

Thank you for your contribution!