Django

Code

Changeset 5494

Show
Ignore:
Timestamp:
06/20/07 01:01:16 (2 years ago)
Author:
adrian
Message:

Fixed #4618 -- Fixed error in django.contrib.redirects new_path handling. Thanks, cephelo@gmail.com

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/redirects/middleware.py

    r4265 r5494  
    2020                pass 
    2121        if r is not None: 
    22             if r == '': 
     22            if r.new_path == '': 
    2323                return http.HttpResponseGone() 
    2424            return http.HttpResponsePermanentRedirect(r.new_path)