﻿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
16935	Misleading message 'super object has no attribute __getattr__' on AttributError during SimpleTemplateResponse.render	Ivan Sagalaev	Ivan Sagalaev	"Consider this code:

{{{
from django.template import Template
from django.template.response import SimpleTemplateResponse

class A(object):
    def __unicode__(self):
        return None.something

def index(request):
    return SimpleTemplateResponse(Template('{{ var }}'), {'var': A()})
}}}

This code emulates a situation of any {{{AttributeError}}} raised during initial template rendering from within {{{SimpleTemplateReponse.render}}}. The real error ""NoneType object has no attribute something"" is masked by a very weird-looking ""super object has no attribute __getattr__"". The traceback also points inside SimpleTemplateResponse.__getattr__ which has no relation whatsoever to the real point of error."	Bug	closed	Template system	1.3	Normal	fixed			Accepted	1	0	0	0	0	0
