﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5971	django.template.TokenParser inconsistent with parsing filters	Dmitri Fedortchenko <zeraien@…>	nobody	"django.template.TokenParser is inconsistent
when parsing filters that follow constant strings or variables.

Meaning that:
{{{
#!python
{% tag thevar|filter sometag %}
}}}
will produce:
{{{
#!python
self.value() = ""thevar|filter""
self.tag() = ""sometag""
}}}

However:
{{{
#!python
{% tag ""a value""|filter sometag %}
}}}
will produce:
{{{
#!python
self.value() = ""a value""
self.tag() = ""|filter""
self.tag() = ""sometag""
}}}
This does not seem like correct behaviour...
I made a very simple patch for this, thus the outcome of the above:

{{{
#!python
{% tag ""a value""|filter sometag %}
}}}
will produce:
{{{
#!python
value = ""a value""|filter
tag = sometag
}}}

So now we can simply pass the ""value"" into a !FilterExpression to parse the filters...

PS: I had trouble naming an internal method, feel free to complain about the name ;)"		closed	Template system	dev		fixed	template filter		Accepted	1	0	0	0	0	0
