title: Django Template loop with variable
body: <p>I am having issue with django html variable so I made the below code which is working .</p>
  
  <pre><code>{%for field in instance %}
  &lt;tr&gt;
  &lt;td width="250"&gt;
  {{ field.Item }}
  &lt;/td&gt;
  &lt;td&gt;
  &lt;input type="text" value={{ field.P_640 }} &gt;
  &lt;/td&gt;
  {% endfor %}
  </code></pre>
  
  <p>But at the view section I have variables and sometimes I am pushing filter value. P_640 and sometimes P_630  .How can I make my template to look to the colomn 1 instead of looking the field name like {{ field.P_640 }} , because it's not working when I push P_630. ?</p>