Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

oops

  • Loading branch information...
commit 6f9c977779e57bd7fde9ebe26df6adf134b1d328 1 parent 170944d
@aaugustin aaugustin authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  docs/urls.py
  2. +1 −1  docs/views.py
View
2  docs/urls.py
@@ -19,7 +19,7 @@
views.language,
),
url(
- r'^(?P<lang>[a-z-]+)/stable/(?P<url>.*)$',
+ r'^(?P<lang>[a-z-]+)/(?P<version>stable)/(?P<url>.*)$',
views.stable,
),
url(
View
2  docs/views.py
@@ -25,7 +25,7 @@ def language(request, lang):
def stable(request, lang, version, url):
path = request.get_full_path()
- version = DocumentRelease.objects.default_version()
+ default_version = DocumentRelease.objects.default_version()
return redirect(path.replace(version, default_version, 1))
def document(request, lang, version, url):
Please sign in to comment.
Something went wrong with that request. Please try again.