title: django - "QuerySet' object has no attribute 'user'
body: <p>I have two models Profile and Avatar. </p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class Profile(models.Model):
      user = models.ForeignKey(User)
      profile_name = models.CharField(blank=True, max_length=50)
  
      def __unicode__(self):
         return u'%s %s' % (self.user, self.profile_name)  
  
  
  class Avatar(models.Model):
      user = models.ForeignKey(User)
      paths = models.CharField(max_length=100)
      def __unicode__(self):
          return u'%s %s' % (self.user,self.paths)
  </code></pre>
  
  <p>I want to do a seach on the <code>profile_name</code> field (from Profile model) and get the paths to the pictures stored on the field <code>paths</code> (from the Avatar model).</p>
  
  <p><strong>view.py</strong></p>
  
  <pre><code>profile_name_search = Profile.objects.filter(profile_name=usr_name)
  user_avatar = Avatar.objects.filter(user=profile_name_search.user.id)
  </code></pre>
  
  <p><code>usr_name</code> variable is passed from a form filed.</p>
  
  <p>For some reason I'm getting this error:</p>
  
  <pre><code>'QuerySet' object has no attribute 'user'
  user_avatar = Avatar.objects.filter(user=profile_name_search.user.id)
  </code></pre>
  
  <p>Any ides?</p>