title: In Django, how do you retrieve a field of a many-to-many related class?
body: <p>I have two classes with a ManyToMany relationship. I'd like to select one from the first class and access the fields of the related class. It seems like this should be easy. For example:</p>
  
  <pre><code>class Topping(models.Model):
    name = models.CharField(max_length=40)
  
  class Pizza(models.Model):
    name = models.CharField(max_length=40)
    toppings = models.ManyToManyField(Topping)
  </code></pre>
  
  <p>So I'd want to do something like:</p>
  
  <pre><code>Pizza.objects.filter(name = 'Pizza 1')[0].toppings[0]
  </code></pre>
  
  <p>But this doesn't work for me. Thanks for any help.</p>