title: django views - get values of ManyToMany field
body: <p>I have a polling app with a ManytoMany Field in the Poll model.</p>
  
  <p>I wanted to retrieve the values of the choice(ManyToMany) field in the views. </p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class Poll(models.Model):
      question = models.CharField(max_length=250)
      pub_date = models.DateTimeField()
      end_date = models.DateTimeField(blank=True, null=True)
      choice= models.ManyToManyField(Choice)
  
  def __unicode__(self):
    return smart_unicode(self.question)
  
  class Choice(models.Model):
      name = models.CharField(max_length=50)
      photo = models.ImageField(upload_to="img")
      rating = models.CharField(max_length=10)
  
  def __unicode__(self):
    return smart_unicode(self.name)
  </code></pre>
  
  <p><strong>views.py</strong>
  There are 2 choices in each poll and I want to assign each of these choices to 2 separate variables but do not know how to.</p>
  
  <pre><code>def polling(request)
      try:
          choices = Poll.objects.all()
          choice_1 = **assign 1st ManyToMany Field value** 
          choice_2 = **assign 2nd ManyToMany Field value** 
  </code></pre>