#8966: {% if "x"|capfirst|length_is:n %} always evaluates True
------------------------------------------------+---------------------------
Reporter: Thomas Steinacher <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.0
Keywords: | Stage: Unreviewed
Has_patch: 0 |
------------------------------------------------+---------------------------
{% if "x"|capfirst|length_is:n %} is always true. Example:
{{{
In [1]: from django.template import Template, Context
In [2]: Template('{% if "x"|capfirst|length_is:0 %}This is wrong{% endif
%}').render(Context({}))
Out[2]: u'This is wrong'
}}}
Using latest Django SVN.
--
Ticket URL: <http://code.djangoproject.com/ticket/8966>
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
-~----------~----~----~----~------~----~------~--~---