﻿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
15025	Different template rendering semantics since r14992	donspaulding	nobody	"Changeset [14992] fixed Ticket #7153, but I believe it also changed the way callable context variables are resolved in the Django template language in a subtle (and backwards-incompatible) way.

Consider the following view, which raises an unhandled exception while trying to render the debug 500 template:

{{{
def view(request):
    def innocent_callable():
        raise Exception(""Should not have been called"")
    raise Exception(""This exception should trigger a debug 500 page"")
}}}

I've already found two regressions in my own code, but they were simple workarounds.  This example appears to be a regression in the django source itself.  I'm not sure if this change in behavior was anticipated or intended, but at the very least I think it should be noted in the release notes as a backwards-incompatibility."		closed	Template system	dev		fixed	blocker, regression	mb0087@…	Accepted	1	0	0	0	0	0
