Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A small stylistic fix - redirect() instead of HttpResponseRedirect().

  • Loading branch information...
commit 6ad5c641f8561f35ed4c62cfd579f1e436eee112 1 parent 9d43700
@jacobian jacobian authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  django_website/docs/views.py
View
3  django_website/docs/views.py
@@ -3,7 +3,6 @@
import datetime
import django.views.static
from django.core import urlresolvers
-from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response, redirect
from django.template import RequestContext
from django.utils import simplejson
@@ -61,7 +60,7 @@ def objects_inventory(request, lang, version):
return response
def redirect_index(request, *args, **kwargs):
- return HttpResponseRedirect(request.path.rstrip('index/'))
+ return redirect(request.path.rstrip('index/'))
class DocSearchView(haystack.views.SearchView):
def __init__(self, **kwargs):
Please sign in to comment.
Something went wrong with that request. Please try again.