def perform_create(self, serializer):
        serializer.save(user=self.request.user)


# Special API views
Customized method to inject the request.user into serializer's save
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/core/views.py/ChatMessageViewSet.perform_create