summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-04-01 14:13:28 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-04-01 14:13:28 +0000
commita274ad9277d0d5c92da71d82f23e78c72d2013df (patch)
tree13d6c9c7d6eda71d8f55656f9cd94dc899aaa7ad
parentf83af07ce39573786919b1e7980f3f4e07528531 (diff)
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
-rw-r--r--django/contrib/admindocs/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admindocs/views.py b/django/contrib/admindocs/views.py
index 110a91f318..55960cfec5 100644
--- a/django/contrib/admindocs/views.py
+++ b/django/contrib/admindocs/views.py
@@ -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),