title: django return foreign key object from queryset?
body: <p>So I have three models</p>
  
  <pre><code>class Post(....
  
  class Project(....
  
  # have a many to many relationship
  class ProjectPost(....
      post = ..... # foreignkey
      project = .... # foreignkey
  </code></pre>
  
  <p>The data set I want to select is a list of Post objects given a Project object.</p>
  
  <p>This is what I tried:</p>
  
  <pre><code>posts_list = ProjectPost.objects.filter(project=project_object).select_related("post")
  </code></pre>
  
  <p>But this returns a list of ProjectPost objects rather than a list of Post objects.  What is the correct way of doing this?</p>