Update views.py

This commit is contained in:
Moetaz 2018-10-08 13:58:18 +01:00 committed by GitHub
parent b3d73bdd7a
commit efd4d2a1a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ class LogoutView(APIView):
permission_classes = (AllowAny,) permission_classes = (AllowAny,)
def __init__(self): def __init__(self):
if getattr(settings, 'ACCOUNT_LOGOUT_ON_GET', True): if getattr(settings, 'ACCOUNT_LOGOUT_ON_GET', False):
self.get = self._get self.get = self._get
super().__init__() super().__init__()