﻿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
3670	ifequal and ifnotequal failing with negative numbers	bram.dejong+django@…	Adrian Holovaty	"{{{
{% ifequal -1 -20 %}
hello
{% endifequal %}
}}}

prints ""hello""

{{{
{% ifnotequal -1 -1 %}
hello
{% endifnotequal %}
}}}

doesn't print anything

this because in resolve_variable( ) in django.template.__init__ uses:

{{{
if path[0].isdigit():
}}}

which could be:

{{{
if path[0].isdigit() or path[0] == ""-"":
}}}"		closed	Template system	dev		fixed	ifequal ifnotequal negative		Ready for checkin	1	0	0	0	0	0
