Ticket #4618: redirect_patch.patch
File redirect_patch.patch, 501 bytes (added by , 17 years ago) |
---|
-
contrib/redirects/middleware.py
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