﻿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
22767	Unexpected value for an unset variable with length filter in templates	György Kiss	nobody	"Not sure if this is a bug or I'm just missing something, but I expected this to be `False` anyway:
`{% if groups|length > 0 %}`

This will be `True` in Django 1.6.5 if `groups` is an unset variable. The `TEMPLATE_STRING_IF_INVALID` setting has the default value (empty string).

I know it's not idiomatic code and I fixed it:
`{% if groups %}`
(which works as expected), but other newbies like me can have a hard time figuring out what's wrong.

I checked `{% if None|length > 0 %}` and it is also `True`, which is clearly not expected."	Bug	closed	Template system	1.6	Normal	duplicate		gregchapple1@…	Unreviewed	0	0	0	0	0	0
