Re: Distinguish between None and False/0/[] in a template?

2010-12-06 Thread Łukasz Rekucki
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

Distinguish between None and False/0/[] in a template?

2010-12-06 Thread Christophe Pettus
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