On 4/12/06, Jiri Barton <[EMAIL PROTECTED]> wrote:
>
> how do I check if a variable is None in a template?
>
> I want to be able to discern among None, empty list, and non-empty
> list; then, I want to tell the user - say nothing, "nothing found",
> "found the following:" resp.
This is likely a si
Jiri Barton wrote:
>I want to be able to discern among None, empty list, and non-empty
>list; then, I want to tell the user - say nothing, "nothing found",
>"found the following:" resp.
>
>
I had a similar (but a bit more complex) thing solved for me by wrapping
a list in a dict:
result={} -
Hello girls and boys,
how do I check if a variable is None in a template? The following do
not work...
{% ifequal variable None %}
{% ifequal variable|default_if_none:"skip" "skip" %}
I want to be able to discern among None, empty list, and non-empty
list; then, I want to tell the user - say n
3 matches
Mail list logo