From 29145f22156f30e74e988b8b3efab89db4f510b7 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 3 Jun 2020 16:19:07 +0300 Subject: [PATCH] Logout: don't use internal auth accessor. --- django_etesync/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_etesync/views.py b/django_etesync/views.py index 88ae7c4..245120b 100644 --- a/django_etesync/views.py +++ b/django_etesync/views.py @@ -667,7 +667,7 @@ class AuthenticationViewSet(viewsets.ViewSet): @action_decorator(detail=False, methods=['POST'], permission_classes=BaseViewSet.permission_classes) def logout(self, request): - request._auth.delete() + request.auth.delete() user_logged_out.send(sender=request.user.__class__, request=request, user=request.user) return Response(status=status.HTTP_204_NO_CONTENT)