Fixed #8853: don't automatically append .html in the admindoc :template: role. Thanks, Ben Spaulding.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-04-01 14:13:28 +00:00
parent f83af07ce3
commit a274ad9277
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ def template_detail(request, template):
else:
site_obj = GenericSite()
for dir in settings_mod.TEMPLATE_DIRS:
template_file = os.path.join(dir, "%s.html" % template)
template_file = os.path.join(dir, template)
templates.append({
'file': template_file,
'exists': os.path.exists(template_file),