#5689: Empty/blank URLField evaluates true for template {% if %} tag
------------------------------------------------+---------------------------
Reporter: Simon Litchfield <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Component: Template system
Version: SVN | Keywords: urlfield blank
empty if template tag
Stage: Unreviewed | Has_patch: 0
------------------------------------------------+---------------------------
As described in summary (rev 6453). Example --
{% if object.url %}
...my html...
{% endif %}
Even where object.url is blank, my html is included. This behaviour is
inconsistent with other fields.
I'll supply a patch if anyone is interested.
--
Ticket URL: <http://code.djangoproject.com/ticket/5689>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---