mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fixed responde text
This commit is contained in:
parent
3c70c3a29c
commit
0a6abd21be
@ -6,6 +6,7 @@ from .serializers import UserSerializer
|
||||
from rest_framework.authtoken.views import ObtainAuthToken
|
||||
from rest_framework.authtoken.models import Token
|
||||
from rest_framework.response import Response
|
||||
from rest_framework import status
|
||||
|
||||
|
||||
class UserDetail(generics.RetrieveAPIView):
|
||||
@ -54,4 +55,4 @@ class GetAuthToken(ObtainAuthToken):
|
||||
pass
|
||||
|
||||
return Response({"success": "Successfully logged out."},
|
||||
status=status.HTTP_200_OK)
|
||||
status=status.HTTP_202_ACCEPTED)
|
||||
|
Loading…
Reference in New Issue
Block a user