title: Django Template :: How to Use POP() in django template
body: <p>In Below code, am iterating through 2 list. users and roles, where I want to print first element from the roles list for the first element from the user.
  user = ['abc','cde']
  roles = [[1,2,3] , [4,5,6]]</p>
  <p>for user 'abc' roles should be printed as 1,2,3 only. but am getting all roles for 'abc' user.</p>
  <pre><code>&lt;table&gt;
      {% for u in users %}
      &lt;tr&gt;
          {% for r in roles.0 %}
                  
          &lt;th&gt;&lt;b&gt;{{ u }}&lt;/b&gt;&lt;/th&gt;
          &lt;td&gt;&lt;b&gt;{{ r }}&lt;/b&gt;&lt;/td&gt;
                  
          {% endfor %}
          {{ roles.pop.0 }}
      &lt;/tr&gt;
      {% endfor %}
  &lt;/table&gt;
  </code></pre>
  <p>Can someone help me understanding that why the {{ roles.pop.0 }} is not deleting first element in the roles list?</p>