title: Django ModelMultipleChoiceField Form
body: <p>On my website, I've got a "Compose Email" page with three fields - Subject, Recipients, &amp; Body. In my database, I've got this custom user model in <strong>models.py</strong>:</p>
  
  <pre><code>class MyUser(models.Model):
      user = models.OneToOneField(User, on_delete=models.CASCADE)
      school = models.CharField(max_length=100)
  
      def __unicode__(self):
          return self.user
  </code></pre>
  
  <p>I want to create a form to import contacts that includes all of the <code>MyUser</code> objects. Currently, I've got this in <strong>forms.py</strong>:</p>
  
  <pre><code>class ContactForm(forms.Form):
      contacts = forms.ModelMultipleChoiceField(widget=forms.Select(attrs={'size':'13', 'onchange':'this.form.action=this.form.submit()'}), queryset=MyUser.objects.all().order_by('user'))#, empty_label=None)
  
      def __init__(self, *args, **kwargs):
          super(ContactForm, self).__init__(*args, **kwargs)
          self.fields['contacts'].queryset = MyUser.objects.all()
  </code></pre>
  
  <p>In my <strong>views.py</strong>, I've got the following view:</p>
  
  <pre><code>def import_contacts(request):
      contact_form = ContactForm()
      if request.method == "POST":
          contact_form = ContactForm(request.POST)
          if contact_form.is_valid:
              # send data to be processed
              return render(request, 'compose_email.html', {
                  'form': contact_form,
              })
      errors = contact_form.errors or None  # form not submitted or it has errors
      return render(request, 'apple/contact_import_form.html', {
          'form': contact_form,
          'errors': errors,
      })
  </code></pre>
  
  <p><strong>contact_import_form.html</strong></p>
  
  <pre><code>...
  &lt;div class="form-panel"&gt;
    &lt;form method="post"&gt;
      {% csrf_token %}
      {{ form.as_p }}
      &lt;div id="sub"&gt;
        &lt;button type="submit" class="button"&gt;Add&lt;/button&gt;
      &lt;/div&gt;
    &lt;/form&gt;
  &lt;/div&gt;
  ...
  </code></pre>
  
  <p>And finally, here is the .html file from which I link to import_contact_form.html
  <strong>compose_email.html</strong>:</p>
  
  <pre><code>...
  &lt;a class="emailButton" id="b1" href="/gordie/home/templates/"&gt;Import Template&lt;/a&gt;
  &lt;a class="emailButton" id="b2" href="/home/send_email/import_contacts/"&gt;Import Contacts&lt;/a&gt;
    &lt;!-- &lt;button class="emailButton" id='b2'&gt;Import Contacts&lt;/button&gt; --&gt;
    &lt;div class="form-panel"&gt;
      &lt;form method="post"&gt;
        {% csrf_token %}
        {{ form.as_p }}
        &lt;div id="sub"&gt;
          &lt;button type="submit" class="button"&gt;Send&lt;/button&gt;
        &lt;/div&gt;
      &lt;/form&gt;
    &lt;/div&gt;
  ...
  </code></pre>
  
  <p>When I get to the Import Contacts page, I don't see any form, only a button that says Add. I'd like to have some list of contacts (dropdown would be fantastic). It's possible I have an issue elsewhere (fairly new to Django), but I am led to believe I've done something wrong with the ModelMultipleChoiceField. What do you think?</p>