bananas/admin/api/views.py
def list(self, request):
        """
        Retrieve logged in user info
        """
        serializer = self.get_serializer(request.user)
        return Response(serializer.data, status=status.HTTP_200_OK)
def list(self, request):
        serializer = self.get_serializer(request.user)
        return Response(serializer.data, status=status.HTTP_200_OK)
def list ( self , request ) : serializer = self . get_serializer ( request . user ) return Response ( serializer . data , status = status . HTTP_200_OK )
Retrieve logged in user info
Retrieve logged in user info