#16935: Misleading message 'super object has no attribute __getattr__' on
AttributError during SimpleTemplateResponse.render
---------------------------------+-------------------------------------
Reporter: isagalaev | Owner: isagalaev
Type: Bug | Status: new
Component: Template system | Version: 1.3
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-------------------------------------
Changes (by lukeplant):
* stage: Unreviewed => Accepted
Comment:
There is a double problem here - the code in question should use `getattr`
on the super object, not `__getattr__` which doesn't exist.
However, I'm proposing we remove it altogether - the point of the code is
to aid debugging in an obscure case, but actually massively hinders
debugging in a (probably) vastly more common case. See
https://groups.google.com/forum/#!topic/django-developers/Vmyi0b6VJgo
I imagine your approach is fine, but I'd prefer not to implement
`__getattribute__` unless we really need it, and it seems overkill here.
--
Ticket URL: <https://code.djangoproject.com/ticket/16935#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.