Skip to content

Commit

Permalink
rf#140 Fix middleware name
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Jul 3, 2018
1 parent 5511e42 commit 8f6e230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion refarm_redirects/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.contrib.sites.shortcuts import get_current_site


class RedirectFallbackMiddleware(DjangoRedirectFallbackMiddleware):
class RedirectAllMiddleware(DjangoRedirectFallbackMiddleware):
# reloaded this method
# just to drop `response.status_code` status check
# in base class
Expand Down
1 change: 1 addition & 0 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'refarm_redirects.middleware.RedirectAllMiddleware',
)

# @todo #140:60m Use `refarm-site's` packages with it's prefix.
Expand Down

0 comments on commit 8f6e230

Please sign in to comment.