@api_view(['GET'])
@authentication_classes([WebpageTokenAuth])
@permission_classes([IsAuthenticated])
def get_active_user(request):
    '\n    Endpoint for getting the active user\n    through the authtoken\n    '
    return Response(UserSerializer(request.user, context={'is_public_view': False}).data, status=status.HTTP_200_OK)
Endpoint for getting the active user
through the authtoken
@api_view(['GET'])
@authentication_classes([WebpageTokenAuth])
@permission_classes([IsAuthenticated])
def get_active_user(request):
    '\n    Endpoint for getting the active user\n    through the authtoken\n    '
    return Response(UserSerializer(request.user, context={'is_public_view': False}).data, status=status.HTTP_200_OK)