﻿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
27726	Template default_if_none filter is inconsistent between printed value and boolean context	Tim Martin	Tim Martin	"I have the template


{{{
x={{x}}
y={{y}}
x|default_if_none:y={{x|default_if_none:y}}
{% if x|default_if_none:y %}
x|default_if_none:y is apparently True
{% endif %}
}}}

If `x` is unset (a missing variable in the template context) and `y` is set to `True`, then this prints:

{{{
x=
y=True
x|default_if_none:y =
x|default_if_none:y is apparently True
}}}

This indicates that `x:default_if_none:y` evaluates to `True` in the boolean context, but doesn't print a value when evaluated directly.
"	Bug	closed	Template system	1.10	Normal	invalid			Accepted	0	0	0	0	0	0
