﻿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
1672	[patch] Template tags ifequal and ifnotequal throw exception if variable does not resolve.	evenson@…	Adrian Holovaty	" 1. obj is an instance of a django model
 1. utility is a foreign key field in obj with null=True and blank=True. 
{{{
{% ifequal obj.get_utility.abbr 'PG&E' %}
...
{% endifequal %}
}}}
If utility_id is null in the db this throws a VariableDoesNotExist exception that does not get caught. I propose changing this case so ifequal fails and ifnotequal passes. This would be a simple change in django.core.template.defaulttags.IfEqualNode.render().

"	defect	closed	Template system	0.91	minor	fixed			Accepted	1	0	1	1	0	0
