Author: adrian
Date: 2007-06-20 01:01:16 -0500 (Wed, 20 Jun 2007)
New Revision: 5494

Modified:
   django/trunk/django/contrib/redirects/middleware.py
Log:
Fixed #4618 -- Fixed error in django.contrib.redirects new_path handling. 
Thanks, [EMAIL PROTECTED]

Modified: django/trunk/django/contrib/redirects/middleware.py
===================================================================
--- django/trunk/django/contrib/redirects/middleware.py 2007-06-19 20:04:54 UTC 
(rev 5493)
+++ django/trunk/django/contrib/redirects/middleware.py 2007-06-20 06:01:16 UTC 
(rev 5494)
@@ -19,7 +19,7 @@
             except Redirect.DoesNotExist:
                 pass
         if r is not None:
-            if r == '':
+            if r.new_path == '':
                 return http.HttpResponseGone()
             return http.HttpResponsePermanentRedirect(r.new_path)
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to