Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'deploy' of github.com:django/djangoproject.com into deploy

  • Loading branch information...
commit 0eb49fd8ce505d81cfa15fca275f66b23fb81237 2 parents 1f94e0e + 1a3e1ce
Jacob Kaplan-Moss authored August 15, 2011

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django_website/docs/views.py
3  django_website/docs/views.py
@@ -60,7 +60,8 @@ def objects_inventory(request, lang, version):
60 60
     return response
61 61
 
62 62
 def redirect_index(request, *args, **kwargs):
63  
-    return redirect(request.path.rstrip('index/'))
  63
+    assert request.path.endswith('index/')
  64
+    return redirect(request.path[:-6])
64 65
 
65 66
 class DocSearchView(haystack.views.SearchView):
66 67
     def __init__(self, **kwargs):

0 notes on commit 0eb49fd

Please sign in to comment.
Something went wrong with that request. Please try again.