Skip to content

Commit

Permalink
#140 Rm existing from_to url check
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Jun 22, 2018
1 parent 6beb5f8 commit 7794b08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion redirects/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

class RedirectsConfig(AppConfig):
name = 'django.contrib.redirects'
verbose_name = _("Redirects")
verbose_name = _('Redirects')
4 changes: 0 additions & 4 deletions redirects/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ def __init__(self, get_response=None):
super().__init__(get_response)

def process_response(self, request, response):
# No need to check for a redirect for non-404 responses.
if response.status_code != 404:
return response

full_path = request.get_full_path()
current_site = get_current_site(request)

Expand Down

0 comments on commit 7794b08

Please sign in to comment.