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 nothing, "nothing found",
"found the following:" resp.
Thank you.
Jiri
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---