#18260: Cache tag doesn't handle filter expresssions
---------------------------------+--------------------
Reporter: FunkyBob | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: master
Severity: Normal | Keywords: cache
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 1 | UI/UX: 0
---------------------------------+--------------------
I found the cache tag didn't well handle when I passed, for instance:
{% cache ..... request.GET.foo %}
As it would raise an exception if GET['foo'] wasn't set... so I tried
passing a default:
{% cache ..... request.GET.foo|default:"bar" %}
Only to see it not only didn't fix the issue, but didn't appear to be
parsing filter expressions, either.
I've updated the cache tag to use parser.compile_filter for all its
arguments.
--
Ticket URL: <https://code.djangoproject.com/ticket/18260>
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 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.