title: How can i perform the right reverse query in ManytoMany in Django
body: <p>I'm trying to perform a reversed query for a <code>manytomany</code> fields in Django, but it keeps gives me nothing, here is my code </p>
  
  <p><strong>models.py</strong></p>
  
  <pre class="lang-py prettyprint-override"><code>class Product(models.Model):
      category = models.ForeignKey(Category, on_delete=models.CASCADE)
      name = models.CharField(max_length=120)
      image = models.ImageField(upload_to='products')
      branch = models.ManyToManyField(Branch, related_name='branches')
  
  class Branch(models.Model):
      area = models.ForeignKey(Area, on_delete=CASCADE)
      name = models.CharField(max_length=1200)
      phone = models.CharField(max_length=30, null=True, blank=True)
      address = models.CharField(max_length=1200, null=True, blank=True)
      tax_value = models.DecimalField(decimal_places=2, max_digits=4)
  
  </code></pre>
  
  <p><strong>views.py</strong></p>
  
  <pre class="lang-py prettyprint-override"><code>
  for branch in product_object.branches.all():
      print(branch)
  </code></pre>
  
  <p>The branch is always nothing !!</p>