class UserViewSet(viewsets.ModelViewSet):
    queryset = User.objects.all()
serializer_class = UserSerializer

def get_object(self):
    if self.kwargs.get('pk', None) == 'me':
        self.kwargs['pk'] = self.request.user.pk
return super(UserViewSet, self).get_object()
DRF - make an resource alias /me for current user