Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored June 20, 2007

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

  1. 2  django/contrib/redirects/middleware.py
2  django/contrib/redirects/middleware.py
@@ -19,7 +19,7 @@ def process_response(self, request, response):
19 19
             except Redirect.DoesNotExist:
20 20
                 pass
21 21
         if r is not None:
22  
-            if r == '':
  22
+            if r.new_path == '':
23 23
                 return http.HttpResponseGone()
24 24
             return http.HttpResponsePermanentRedirect(r.new_path)
25 25
 

0 notes on commit 13216e1

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