#33370: {% if %} tag incorreclty being evaluated
-------------------------------------------+-----------------------------
               Reporter:  Michael          |          Owner:  nobody
                   Type:  Uncategorized    |         Status:  new
              Component:  Template system  |        Version:  4.0
               Severity:  Normal           |       Keywords:  templatetag
           Triage Stage:  Unreviewed       |      Has patch:  0
    Needs documentation:  0                |    Needs tests:  0
Patch needs improvement:  0                |  Easy pickings:  0
                  UI/UX:  0                |
-------------------------------------------+-----------------------------
 In the below snippet, I actually check {% if DEBUG %}, but just to prove
 the result is Falsey:

 {{{
 {% load cache %}

 {% if False %}
     {% cache None user.email user.first_name %}
 {% endif %}
 Here's some content I don't wish to cache when DEBUG is on.
 {% if False %}
     {% endcache %}
 {% endif %}
 }}}

 The error generated is:
 {{{
 Invalid block tag on line 28: 'endif', expected 'endcache'. Did you forget
 to register or load this tag?
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33370>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.6e209e4cb0c8c14a1ae04acb72e28215%40djangoproject.com.

Reply via email to