#27956: Template error raised in an {% extends %} parent template shows
incorrect
source location on debug page
---------------------------------+------------------------------------
Reporter: Ling-Xiao Yang | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Comment (by Preston Timmons):
This is happening because the ExtendsNode calls `Template._render` rather
than `Template.render`:
https://github.com/django/django/blob/master/django/template/loader_tags.py#L152
That means context.render_context.template still references the original
template when the debug information is collected:
https://github.com/django/django/blob/3dcc3516914f25b58bde9312831f1d94b05cdb53/django/template/base.py#L914
--
Ticket URL: <https://code.djangoproject.com/ticket/27956#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.5b0c4144cc4654471c8c6550b17c8890%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.