Browse Source

refactor(api): make AccountLogoutView more idiomatic

Peter Thomassen 4 years ago
parent
commit
307565682e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/desecapi/views.py

+ 1 - 1
api/desecapi/views.py

@@ -536,7 +536,7 @@ class AccountLoginView(generics.GenericAPIView):
         return Response(data)
 
 
-class AccountLogoutView(generics.GenericAPIView, mixins.DestroyModelMixin):
+class AccountLogoutView(APIView, mixins.DestroyModelMixin):
     authentication_classes = (auth.TokenAuthentication,)
     permission_classes = (IsAuthenticated,)
     throttle_classes = []  # always allow people to log out