def METHOD_NAME(self, serializer):
    serializer.save()
    write_resource_insight_log(
        instance=serializer.instance,
        author=self.request.user,
        event=EntityEvent.CREATED,
    )