title: django contenttype and string comparison
body: <p>I have a model with ContentType field in it.</p>
  
  <p>In any model method I can compare it to the string: </p>
  
  <pre><code>self.content_type == "construction" # True if ContentObject points to Construction model.
  </code></pre>
  
  <p>However, such thing doesn't seem to work in templates.</p>
  
  <p>First thing I tried </p>
  
  <pre><code>{% if object.content_type == "construction" %}
  </code></pre>
  
  <p>And second:</p>
  
  <pre><code>def __unicode__(self): 
      return str(self.content_type)
  `{% if object == "construction" %}`
  </code></pre>
  
  <p>and it's False, but {{ object }} prints <code>construction</code>.</p>