Skip to content
Browse files

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

  • Loading branch information...
1 parent 9d43700 commit 6ad5c641f8561f35ed4c62cfd579f1e436eee112 @jacobian jacobian committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 django_website/docs/
3 django_website/docs/
@@ -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):

0 comments on commit 6ad5c64

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