On 6 December 2010 20:31, Christophe Pettus wrote:
> Pardon if this is a FAQ, but is there a built-in way of distinguishing
> between None and the other typical false values (False/0/[]) in a template?
> Something along the lines of:
>
> {% if var == None %} ... {% endif %}
>
It's best
Pardon if this is a FAQ, but is there a built-in way of distinguishing between
None and the other typical false values (False/0/[]) in a template? Something
along the lines of:
{% if var == None %} ... {% endif %}
Thanks!
--
-- Christophe Pettus
x...@thebuild.com
--
You received t
2 matches
Mail list logo