title: Django _meta many to many
body: <p>I am writing a shell utility that allows me to traverse relations so that I don't need to go back to my models and see how tables are related. I am using <code>_meta</code> in order to get all this information.</p>
  
  <p>Look at the following sample models:</p>
  
  <pre><code>class Foo:
      ...
  
  class Bar:
      foo = models.ManyToManyField(Foo)
  </code></pre>
  
  <p>and this is what happens when I use <code>_meta</code> to find the m2m fields:</p>
  
  <pre><code>In [33]: Bar._meta.many_to_many
  Out [33]: [&lt;django.db.models.fields.related.ManyToManyField: foos&gt;]
  In [34]: Foo._meta.many_to_many
  Out [34]: []
  </code></pre>
  
  <p>is there something that will return <code>[&lt;django.db.models.fields.related.ManyToManyField: bars&gt;]</code> by asking for the m2m relations with the <code>Foo</code> model? </p>