title: Django: Accessing for loop variable in the child template
body: <p>I have a base template:</p>
  
  <pre><code>base.html:
  
      {% for object in object_list %}  
              {%block object_attributes%} {%endblock%}
      {% endfor %}
  </code></pre>
  
  <p>and a child that inherits from it:</p>
  
  <pre><code>child.html
  
  {% extends "base.html" %}
  
  {%block object_attributes%} 
            {{block.super}}
            &lt;td&gt;{{ object.name }}&lt;/td&gt;
            &lt;td&gt;{{ object.address }}&lt;/td&gt;
  {%endblock%}
  </code></pre>
  
  <p>It seems however, that the child is unable to see the variable "object". I understand it's a local variable of the for loop, but how could I still make it visible for the child?</p>