mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +03:00
Update views.py
This commit is contained in:
parent
b3d73bdd7a
commit
efd4d2a1a9
|
@ -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__()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user