From a274ad9277d0d5c92da71d82f23e78c72d2013df Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 1 Apr 2009 14:13:28 +0000 Subject: [PATCH] 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 --- django/contrib/admindocs/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admindocs/views.py b/django/contrib/admindocs/views.py index 110a91f318e..55960cfec59 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),