title: How to use __repr__ method within django template?
body: <p>For example, there is an object in a nested loop:</p>
  
  <pre><code> {% for fieldset in inline_admin_form %}
                      {% for line in fieldset %}
                        {% for field in line %}
  
                          {% if field.is_hidden %} {{ field.field }} {% endif %}
                        {% endfor %}
                      {% endfor %}
                    {% endfor %}
                {% endif %}
  </code></pre>
  
  <p>Now I want to check the class name and some information about <code>field.field</code>, so I use <code>field.field.__repr__()</code> to replace <code>field.field</code>.</p>
  
  <p>However, the django template complains about it after the change:</p>
  
  <pre><code>Variables and attributes may not begin with underscores: 'field.field.__repr__'
  </code></pre>
  
  <p>Does anyone have idea about this? And is there any better way to debug for a variable in django template? (I tried <code>{% debug %}</code> but found it awful when I want to check a variable in a nested loop..)</p>