Ticket #4618: redirect_patch.patch
| File redirect_patch.patch, 501 bytes (added by cephelo@gmail.com, 1 year ago) |
|---|
-
contrib/redirects/middleware.py
old new 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
