Ticket #4618: redirect_patch.patch

File redirect_patch.patch, 501 bytes (added by cephelo@…, 17 years ago)
  • contrib/redirects/middleware.py

     
    1919            except Redirect.DoesNotExist:
    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)
    2525
Back to Top