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)