title: Django - permissions and profiles
body: <p>I have a couple of different profiles.  I want to associate permissions with these profiles.  I've done so like this:</p>
  
  <pre><code>class StudentProfile(UserProfile):
      school = models.CharField(max_length=30)
      class Meta:
          permissions = (
              ("is_student","Can access student pages"),
          )
  </code></pre>
  
  <p>however, when I try and check if that permission exists using has_perm on that profile object, I get an error "'StudentProfile' object has no attribute 'has_perm'"  am I not supposed to check for permissions in this way?  I've read the docs and that's what I thought I was supposed to do</p>
  
  <p><strong>Edit:</strong>  After reading the docs again, it seems that has_perm is a method belonging to Users and NOT their profiles.  However, when I try to show the permissions:</p>
  
  <pre><code>print user.get_all_permissions()
  </code></pre>
  
  <p>I get an empty set.  Shouldn't I see something like "appname.is_student"</p>