Browse files

Fixed #8853: don't automatically append .html in the admindoc :templa…

…te: role. Thanks, Ben Spaulding.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f83af07 commit a274ad9277d0d5c92da71d82f23e78c72d2013df @jacobian jacobian committed Apr 1, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admindocs/views.py
View
2 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),

0 comments on commit a274ad9

Please sign in to comment.