mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-03-16 21:40:23 +00:00
Update get_started.rst (#513)
explicit import to help us find Select2MultipleWidget
This commit is contained in:
parent
d34cd2e5de
commit
82859121a6
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ Replacing::
|
|||
|
||||
with::
|
||||
|
||||
from django_select2.forms import Select2MultipleWidget
|
||||
|
||||
class MyForm(forms.Form):
|
||||
things = ModelMultipleChoiceField(queryset=Thing.objects.all(), widget=Select2MultipleWidget)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue