7👍
len(myObj.list)
is invalid syntax in django templates.
You could use the length
filter instead.
{% if myObj.list|length > 0 %}
Source:stackexchange.com
7👍
len(myObj.list)
is invalid syntax in django templates.
You could use the length
filter instead.
{% if myObj.list|length > 0 %}