Prechádzať zdrojové kódy

refactor(api): make AccountDeleteView more idiomatic

Peter Thomassen 4 rokov pred
rodič
commit
bd6742a1f8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      api/desecapi/views.py

+ 1 - 1
api/desecapi/views.py

@@ -496,7 +496,7 @@ class AccountView(generics.RetrieveAPIView):
         return self.request.user
 
 
-class AccountDeleteView(generics.GenericAPIView):
+class AccountDeleteView(APIView):
     authentication_classes = (auth.EmailPasswordPayloadAuthentication,)
     permission_classes = (IsAuthenticated,)
     response_still_has_domains = Response(