title: Return all of users posts and favourites? Django
body: <p>I'm creating a summary page of all of the posts the user has liked and all of the posts which the user has created. </p>
  
  <p>I have two models in my db: <code>Aircraft</code> &amp; <code>Airline</code>. The user can upload posts to either model that they prefer. I'm just slightly clueless on how to retrieve their posts?</p>
  
  <p><strong>Aircraft Model</strong></p>
  
  <pre><code>class Aircraft(AircraftModelBase):
      manufacturer = SortableForeignKey(Manufacturer)
      aircraft_type = SortableForeignKey(AircraftType)
      body = SortableForeignKey(Body)
      engines = models.PositiveSmallIntegerField(default=1)
  </code></pre>
  
  <p><strong>Airline Model</strong></p>
  
  <pre><code>class Airline(AirlineModelBase):
      fleet_size = models.PositiveSmallIntegerField()
      alliance = models.CharField(max_length=100, null=True)
      average_fleet_age = models.PositiveSmallIntegerField()
  </code></pre>
  
  <p>In my Accounts app I've made a model of the following: </p>
  
  <pre><code>class FavoritedAircraft(models.Model):
    user = models.ForeignKey(User)
    aircraft = models.ForeignKey(Aircraft)
  
    def __str__(self):
      return self.aircraft.name
  
  
  class FavoritedAirline(models.Model):
    user = models.ForeignKey(User)
    airline = models.ForeignKey(Aircraft)
  
    def __str__(self):
      return self.airline.name
  </code></pre>
  
  <p>How do I essentially return the users favourite posts and if the user has uploaded anything, those posts as well?</p>
  
  <p>Thanks for any help!</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>class UploadedAircraft(models.Model):
    user = models.ForeignKey(User)
    aircraft = models.ForeignKey(Aircraft)
  
    def __str__(self):
      return self.aircraft.name
  </code></pre>