diff --git a/label_studio/io_storages/base_models.py b/label_studio/io_storages/base_models.py index 008896d550cb..bb22bdc68159 100644 --- a/label_studio/io_storages/base_models.py +++ b/label_studio/io_storages/base_models.py @@ -516,7 +516,7 @@ def _get_serialized_data(self, annotation): else: serializer_class = load_func(settings.STORAGE_ANNOTATION_SERIALIZER) # deprecated functionality - save only annotation - return serializer_class(annotation).data + return serializer_class(annotation, context={'project': self.project}).data def save_annotation(self, annotation): raise NotImplementedError