﻿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
15502	TemplateDoesNotExist reports incorrect template during {% include %} from Class Based Views / TemplateResponse objects	James Aylett	nobody	"If I have a `django.views.generic.base.TemplateView` as so:

{{{
from django.views.generic.base import TemplateView

class FailingView(TemplateView):
    template_name = 'outer.html'
}}}

with `templates/outer.html` being:

{{{
{% include ""inner.html"" %}
}}}

and `templates/inner.html` not existing, then the exception is:

{{{
TemplateDoesNotExist at /search/
outer.html
}}}

when it should be:

{{{
TemplateDoesNotExist at /search/
inner.html
}}}

This appears to be similar to #12787, but a test case similar to `test_extends_include_missing_baseloader` does not show up the problem, apparently because `loader.get_template()` will raise the correct exception, but `loader.select_template()` is used with a list or tuple inside `SimpleTemplateResponse.resolve_template()`, and gets this wrong."		closed	Template system	1.3-beta		fixed		georgedorn@…	Ready for checkin	1	0	0	0	0	0
