title: Django foreign key user has no attribute post_set
body: <p>I've got these two models.</p>
  
  <pre><code>class UserProfile(models.Model):
      user = models.OneToOneField(User)
  </code></pre>
  
  <p>THIS SHOULD BE </p>
  
  <pre><code>def posts(self): 
          return self.user.poster.all()
  </code></pre>
  
  <p>INSTEAD OF </p>
  
  <pre><code>def posts(self):
          return self.user.post_set.all()
  
  def __unicode__(self):
          return self.user.username
  
  
  
  class Post(models.Model):
      author = models.ForeignKey(User, related_name='poster')
  
  def __unicode__(self):
          return self.title
  </code></pre>
  
  <p>and I'm attempting to display all posts by a user on this html page, where user_list = UserProfile.objects.all()</p>
  
  <pre><code>    {% for user in user_list %}
  
          {{ user.user }}
  
          {{ user.posts }}
  
      {% endfor %}
  </code></pre>
  
  <p>However, I'm being greeted by this error page that says 'UserProfile' object has no attribute 'post_set', or 'UserProfile' object has no attribute 'post_set', depending on if I use user.user.posts or user.posts. </p>
  
  <p>Anyone have any ideas?</p>
  
  <p>Thanks</p>