title: how do i use isinstance() in django template language
body: <p>I have been trying this for a while and getting a syntax error that invalid block tag: expected empty</p>
  
  <pre><code> {%if isinstance(object, ClassName)%}
       {%do something here%}
   {%else%}
       {%do something here%}
   {%endif%}
  </code></pre>
  
  <p>can somebody please help me that how do i achieve this</p>
  
  <p>in python console "isinstance(obj,Class)" works perfectly fine and returns true to me.</p>
  
  <p>thanks</p>