On Jul 25, 2012, at 3:11 PM, fnando wrote:
> Hello, beginner here. I'm getting an error at the IF statement, line 2 of
> this snippet:
Could it be that you're using object as the loop variable, and object is also
the global var? I might change it to:
for item in object.list
And use {{ item
Hello, beginner here. I'm getting an error at the IF statement, line 2 of
this snippet:
{% for object in object.list|slice:":5" %}
{% if object.person == "String" and forloop.counter0 == 5 %}
{% else %}
{{ object.paper }}
2 matches
Mail list logo