mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 00:56:34 +03:00
Update views.py
This commit is contained in:
parent
b3d73bdd7a
commit
efd4d2a1a9
|
@ -106,7 +106,7 @@ class LogoutView(APIView):
|
|||
permission_classes = (AllowAny,)
|
||||
|
||||
def __init__(self):
|
||||
if getattr(settings, 'ACCOUNT_LOGOUT_ON_GET', True):
|
||||
if getattr(settings, 'ACCOUNT_LOGOUT_ON_GET', False):
|
||||
self.get = self._get
|
||||
super().__init__()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user