﻿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
17484	"DetailView crashes w/ TemplateDoesNotExist(""No template names provided"") where ListView doesn't"	Aaron C. de Bruyn	nobody	"This appears to be a bug:

From urls.py:
{{{
    url(r'^$', PermitListView.as_view(), name='permits'),
    url(r'^(?P<pk>\d+)/$', PermitView.as_view(), name='permit'),
}}}


From views.py
{{{
class PermitListView(ListView):
    queryset = Permit.objects.all()

class PermitView(DetailView):
    queryset = Permit.objects.all()

}}}

When accessing the page that triggers the ListView object, Django looks for 'permits/permits_list.html'.

When accessing the page that triggers the DetailView object, Django crashes outputting ""A server error occurred.  Please contact the administrator."" to the browser and this traceback: http://dpaste.com/679783/


If I change the PermitView to this:

{{{
class PermitView(DetailView):
    model = Permit

}}}

Django looks for 'permits/permit_detail.html' as it should.
"	Bug	closed	Generic views	1.4-alpha-1	Normal	worksforme			Unreviewed	0	0	0	0	0	0
