Skip to content

Commit

Permalink
Merge pull request #665 from olegpshenichniy/BK-2175
Browse files Browse the repository at this point in the history
BK-2175 Change import in SecurityMiddleware
  • Loading branch information
ride90 authored Mar 2, 2017
2 parents 2a1666b + 695def4 commit 77314d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/booktype/apps/core/middleware.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import rest_framework
from rest_framework.response import Response as RestResponse

from django.contrib.auth import logout

from booktype.utils.security import Security, get_security
Expand All @@ -8,7 +9,7 @@ class SecurityMiddleware(object):

def process_template_response(self, request, response):

if isinstance(response, rest_framework.response.Response):
if isinstance(response, RestResponse):
return response

sec = response.context_data.get('security', None)
Expand Down

0 comments on commit 77314d5

Please sign in to comment.