ModelSelect2MultipleField not defined
<p>Does anybody know where ModelSelect2MultipleField is imported from?
I've been trying to import it into a file that I need, and I thought that I could do it with</p>

<pre><code>from django_select2.fields import ModelSelect2MultipleField
</code></pre>

<p>but I keep getting errors.
Before when I had it </p>

<pre><code>from django_select2 import *
</code></pre>

<p>It said that ModelSelect2MultipleField, which I use in the py file, was not defined. Now it says that there is no module named fields.</p>

<p>The .py file I'm talking about can be found here (<a href="https://bitbucket.org/cbplusd/wibo/src/efc144e1bdc1eb52f76591c60ff0a1d40464b0ed/reports/forms.py?at=master&amp;fileviewer=file-view-default" rel="nofollow">https://bitbucket.org/cbplusd/wibo/src/efc144e1bdc1eb52f76591c60ff0a1d40464b0ed/reports/forms.py?at=master&amp;fileviewer=file-view-default</a>).</p>

<p>The Django-Select2 I have installed is version 5.8.9, so is there another way to import ModelSelect2MultipleField other than this way?</p>

<p>Thanks in advance!</p>

<p>You need to use <code>from django_select2.forms import ModelSelect2MultipleWidget</code>. I found this by looking at the test application <a href="https://github.com/applegrew/django-select2/blob/master/tests/testapp/forms.py" rel="nofollow">here</a>.</p>

<p>There is no ModelSelect2MultipleField there is however a ModelSelect2MultipleWidget which should do what you need.</p>

python django