title: Check if content_object is of certain model
body: <p>With the simplified models:</p>
  
  <pre><code>class Notification(models.Model):
      content_type = models.ForeignKey(ContentType, null=True)
      object_id = models.PositiveIntegerField(null= True)
      content_object = generic.GenericForeignKey('content_type', 'object_id')
  
  class Person(models.Model):
      name = models.CharField(max_length=50)
  </code></pre>
  
  <p>How should I check whether a <code>Notification</code>'s content_object is of the <code>Person</code> class?</p>
  
  <pre><code>if notification.content_type:
      if notification.content_type.name == 'person':
          print "content_type is of Person class"
  </code></pre>
  
  <p>That works, but it just doesn't feel right nor pythonic. Is there a better way?</p>