class UserViewSet(viewsets.ModelViewSet):
    model = User
serializer_class = UserSerializer

def dispatch(self, request, *args, **kwargs):
    if kwargs.get('pk') == 'current' and request.user:
        kwargs['pk'] = request.user.pk
return super(UserViewSet, self).dispatch(request, *args, **kwargs)
Return the current user with Django Rest Framework