 <p>Why don't you use the <a href="https://docs.djangoproject.com/en/dev/ref/templates/builtins/#for" rel="nofollow"><code>for</code> construct</a>?</p> <pre><code>{% for user in all_entries_user %} Do your thing with {{ user }} {% endfor %} </code></pre>