Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #4618 -- Fixed error in django.contrib.redirects new_path handl…

…ing. Thanks, cephelo@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 13216e12ddb2ecef4921b884abf8be157b537a45 1 parent 18619a1
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/redirects/middleware.py
View
2  django/contrib/redirects/middleware.py
@@ -19,7 +19,7 @@ def process_response(self, request, response):
except Redirect.DoesNotExist:
pass
if r is not None:
- if r == '':
+ if r.new_path == '':
return http.HttpResponseGone()
return http.HttpResponsePermanentRedirect(r.new_path)
Please sign in to comment.
Something went wrong with that request. Please try again.