﻿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
17229	Allow 'True', 'False' and 'None' to resolve to corresponding Python objects	anatoly techtonik <techtonik@…>	Aymeric Augustin	"[Original bug title: Invalid '==' expression silently ignored leading to invalid result]

Let me clarify the title - I am not sure the expression below is invalid. It is the expression I intuitively expect to work. But perhaps Django it is a specifics of template language. In any case it should either complain or produce expected output, which it doesn't.

{{{
_{{ closed }}_
{% if closed == True %} ***** {% endif %}
}}}

If `closed` variable is equal to `None`, the example above will output the string:
{{{
_None_ *****
}}}
Expected is to output nothing or to give a warning about invalid right-side argument.

If `closed` is boolean (not string) and is equal to `True`, it will output
{{{
_True_
}}}
Expected is to output
{{{
_True_ *****
}}}
or to give a warning about invalid right-side argument."	New feature	closed	Template system	1.2	Normal	fixed			Accepted	1	0	0	0	1	0
