title: How do I get the class of a object within a Django template?
body: <p>If I have a list of objects that require similar layouts but need some attribute set based on the class of object how can I go about getting the class name while <strong>class</strong> and other <strong>xx</strong> values are not available within templates.</p>
  
  <pre>
  {% for obj in objects %}
   &lt;div class={{obj.__class__.__name__}}
     ..
   &lt;/div>
  {% endfor }}
  </pre>
  
  <p>There is probably an alternative approach i'm missing here..</p>