title: Django- display manytomanyfield form in template and post to the base
body: <p>People, please help me :) <br />
  I have 2 class :
  In first we can sign to the edition - name, surname, phone, mail. <br />
  In second we can display form with number edition and users who sign to sth edition. <br />
  I want display only 'publish' number edition in template.<br />
  In page we can choice edition (drop-down list /multiple), write name etc and save to this edition.. <br />
  I know I write awfully, but maybe U understand.. </p>
  
  <h3>models:</h3>
  
  <pre><code>class Signup(models.Model):
      name = models.CharField(max_length=30, verbose_name='Imię',)
      surname = models.CharField(max_length=30, verbose_name='Nazwisko', blank=True, null=True)
      phone = models.CharField(max_length=20, verbose_name='Numer telefonu', blank=True, null=True)
      mail = models.EmailField(verbose_name="Email", max_length=254, blank=True, null=True)
      home = models.CharField(max_length=40, verbose_name='Miejsce zamieszkania', blank=True, null=True)
      nr_edition = models.ManyToManyField('Edition', verbose_name='Edycja', blank=True, null=True,)
  
  
  class Meta:
          verbose_name = "Uczestnik"
          verbose_name_plural = "Uczestnicy"
  
      def __unicode__(self):
          return u'%s %s' % (self.name, self.surname)
  
  
  
  class PublishedEditManager(models.Manager):
      def get_query_set(self):
          return super(PublishedEditManager, self).get_query_set().filter(published=True)
  
  class Edition(models.Model):
      name_edit = models.CharField('Nazwa edycji', max_length=100)
      slug = models.SlugField('Odnośnik', unique=True, max_length=100)
      # new_user = formset_factory(ContactForm)
      published = models.BooleanField('Opublikowany', blank=True)
      objects = models.Manager()
      published_edition = PublishedEditManager()
  
      class Meta:
          verbose_name = "Numer edycji"
          verbose_name_plural = "Numery edycji"
  
      def __unicode__(self):
          return self.name_edit
  
      def get_absolute_url(self):
          return u'%s' % self.name_edit
  </code></pre>
  
  <h3>forms</h3>
  
  <pre><code>class ContactForm(forms.Form):
      name = forms.CharField()
      surname = forms.CharField()
      phone = forms.CharField()
      mail = forms.EmailField()
      nr_edition = forms.ModelMultipleChoiceField
  
      def is_valid(self):
          vf = forms.Form.is_valid(self)
          for f in self.errors:
              self.fields[f].widget.attrs.update({'class': 'errorlist'})
          return vf
  
      def clean(self):
          cleaned_data = super(ContactForm, self).clean()
          return cleaned_data
  
  ContactFormSet = formset_factory(ContactForm)
  </code></pre>
  
  <h3>view</h3>
  
  <pre><code>def about_alfa(request):
      c = {}
      c['about_alfa'] = True
      c['request'] = request
  
      if request.method == 'POST': # If the form has been submitted...
          form = ContactForm(request.POST, request.FILES) # A form bound to the POST data
          ContactFormSet = formset_factory(ContactForm)
  
          if form.is_valid(): # All validation rules pass
              name = form.cleaned_data['name']
              surname = form.cleaned_data['surname']
              phone = form.cleaned_data['phone']
              mail = form.cleaned_data['mail']
              nr_edition = form.cleaned_data['nr_edycji']
  
              id_model = Signup.objects.create(
                  name=name,
                  surname=surname,
                  phone=phone,
                  mail=mail,
                  nr_edycji=nr_edition
              )
  
              c['form'] = form
              c['send']= True
              # print sendimage
              text = u'Imię: %s \n' \
                     u'Nazwisko: %s \n' \
                     u'Telefon: %s \n' \
                     u'Mail: %s \n' % (name, surname, phone, mail)
  
              html = u'&lt;p&gt;Imię: &lt;strong&gt;%s&lt;/strong&gt;&lt;/p&gt;' \
                     u'&lt;p&gt;Nazwisko: &lt;strong&gt;%s&lt;/strong&gt;&lt;/p&gt;' \
                     u'&lt;p&gt;Telefon: &lt;strong&gt;%s&lt;/strong&gt;&lt;/p&gt;' \
                     u'&lt;p&gt;Mail: &lt;strong&gt;%s&lt;/strong&gt;&lt;/p&gt;' % (name, surname, phone, mail)
              sendMailTemplate(['dp@asd.pl'], 'Nowa osoba zapisała się ne Alfe.', text, html, copy=False,
              )
  
              return render(request, 'about_alfa.html', c)
          else:
              c['form'] = form
              return render(request, 'about_alfa.html', c)
      else:
          c['form'] = ContactForm()
  
      return render_to_response('about_alfa.html', c, context_instance=RequestContext(request))
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <h3>models</h3>
  
  <p>Nothing change<br /></p>
  
  <h3>forms</h3>
  
  <p>I delete first part and this is result:</p>
  
  <pre><code>class ContactForm(forms.ModelForm):
      class Meta:
          model = Signup
      nr_edition = forms.ModelMultipleChoiceField(queryset=Edition.objects.all())
  
      def save(self):
          signup = forms.ModelForm.save(self)
          for edition in self.cleaned_data['nr_edition']:
               signup.edition_set.add(edition)
  
      def clean(self):
          cleaned_data = super(ContactForm, self).clean()
          return cleaned_data
  
  ContactFormSet = formset_factory(ContactForm)
  </code></pre>
  
  <h3>view</h3>
  
  <p>I delete almost all and :</p>
  
  <pre><code> def about_alfa(request):
          c = {}
          c['about_alfa'] = True
          c['request'] = request
          if request.method == 'POST': # If the form has been submitted...
          form = ContactForm(request.POST, request.FILES) # A form bound to the POST data
          ContactFormSet = formset_factory(ContactForm)
             if form.is_valid():
                 form.save()
          return render_to_response('about_alfa.html', c, context_instance=RequestContext(request))
  </code></pre>
  
  <h2>Edit 2</h2>
  
  <p>I have no errors but i dont see any field in template (only submit^^).. ?</p>