title: Get all related model class in django
body: <p>I am trying to get a list of all related model class instance that have a Foreign Key relationship, so that I can do something like <code>model._meta.fields</code>..</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>for related_object in A._meta.get_all_related_objects():
          related_name = related_object.field.rel.related_name
  </code></pre>
  
  <p>but I am not sure how to get related model class..</p>
  
  <p>Thanks for your help!</p>