title: Is there a way to get data from tables which contain same foreign key?
body: <p>I have database with multiple tables. In one of them is model named <em>project</em> which is then used as a foreign key on multiple other models, which are then used as a foreign key themselfs.</p>
  
  <p><a href="https://i.stack.imgur.com/Lu4U7.jpg" rel="nofollow noreferrer">Foreign key relation state:</a></p>
  
  <p>I am wondering if there is a way (library or command) to get all models which are connected with the top most model (<em>project</em>) in form of command line command or line of code.</p>
  
  <p><a href="https://i.stack.imgur.com/10A9q.jpg" rel="nofollow noreferrer">What data I want to get:</a></p>
  
  <p>I have tried with django-fixture-magic, but that is not what I am looking for.</p>
  
  <p><a href="https://i.stack.imgur.com/Ibmdi.jpg" rel="nofollow noreferrer">Data I am able to get 1/2</a></p>
  
  <p><a href="https://i.stack.imgur.com/PgmME.jpg" rel="nofollow noreferrer">Data I am able to get 2/2</a></p>