diff --git a/openedx_tagging/core/tagging/rest_api/v1/serializers.py b/openedx_tagging/core/tagging/rest_api/v1/serializers.py index a875c98b..371e5ce7 100644 --- a/openedx_tagging/core/tagging/rest_api/v1/serializers.py +++ b/openedx_tagging/core/tagging/rest_api/v1/serializers.py @@ -144,7 +144,7 @@ class ObjectTagUpdateQueryParamsSerializer(serializers.Serializer): # pylint: d ) -class TagDataSerializer(serializers.Serializer): +class TagDataSerializer(serializers.Serializer): # pylint: disable=abstract-method """ Serializer for TagData dicts. Also can serialize Tag instances. @@ -194,12 +194,6 @@ def to_representation(self, instance: TagData | Tag) -> dict: data["parent_value"] = instance.parent.value if instance.parent else None return data - def update(self, instance, validated_data): - raise RuntimeError('`update()` is not supported by the TagData serializer.') - - def create(self, validated_data): - raise RuntimeError('`create()` is not supported by the TagData serializer.') - class TaxonomyTagCreateBodySerializer(serializers.Serializer): # pylint: disable=abstract-method """ @@ -273,7 +267,7 @@ class Meta: ] -class TaxonomyImportPlanResponseSerializer(serializers.Serializer): +class TaxonomyImportPlanResponseSerializer(serializers.Serializer): # pylint: disable=abstract-method """ Serializer for the response of the Taxonomy Import Plan request """ @@ -290,9 +284,3 @@ def get_plan(self, obj): return plan.plan() return None - - def update(self, instance, validated_data): - raise RuntimeError('`update()` is not supported by the TagImportTask serializer.') - - def create(self, validated_data): - raise RuntimeError('`create()` is not supported by the TagImportTask serializer.')