title: access to data ManyToMany django template
body: <p>I try to display a menu category ---> Subcategory ---> products.
  I use a context_processor to display all the categories and submenus .
  I need to get products based on category and subcategory
  I can only display django.db.models.fields.related.ManyRelatedManager at object ....</p>
  
  <pre><code>class Categorias(models.Model):
  nome_categoria = models.CharField(max_length=100)
  
  class Subcategoria(models.Model):
  nome_subcategoria = models.CharField(max_length=100)    
  
  class Product(models.Model):
  categoria = models.ManyToManyField('Categorias')
  subcategoria = models.ManyToManyField('Subcategoria')
  </code></pre>
  
  <p>context.py</p>
  
  <pre><code>def menu(request):
      return {'menucategoria': Categorias.objects.all(),}
  
  def submenu(request):
  return {'submenu': Subcategoria.objects.all(),}
  </code></pre>
  
  <p>menu.html</p>
  
  <pre><code>{% for c in menucategoria %} 
      &lt;ul&gt;
          &lt;li class="block"&gt;
              &lt;input type="checkbox" name="item" id="{{c.id}}" /&gt;   
              &lt;label for="{{c.id}}"&gt;{{c}}&lt;/label&gt;
              &lt;ul class="options"&gt;
              {% for p in produtos.subcategoria.all %}                 
                  &lt;li&gt;&lt;a href=""&gt;{{p}}&lt;/a&gt;&lt;/li&gt;    
              {% endfor %}
              &lt;/ul&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  {% endfor %}
  </code></pre>