diff --git a/breathecode/registry/serializers.py b/breathecode/registry/serializers.py index 3e7d6305b..f38ac11f1 100644 --- a/breathecode/registry/serializers.py +++ b/breathecode/registry/serializers.py @@ -503,6 +503,7 @@ def to_value(self, instance): class AssetTechnologySerializer(ParentAssetTechnologySerializer): parent = ParentAssetTechnologySerializer(required=False) + sort_priority = serpy.Field() lang = serpy.Field(required=False) diff --git a/breathecode/registry/tests/urls/v1/tests_technology.py b/breathecode/registry/tests/urls/v1/tests_technology.py index 2aabcd206..a730e96ed 100644 --- a/breathecode/registry/tests/urls/v1/tests_technology.py +++ b/breathecode/registry/tests/urls/v1/tests_technology.py @@ -20,6 +20,7 @@ def get_serializer(asset_technology, assets=[], asset_technologies=[]): "slug": asset_technology.slug, "title": asset_technology.title, "visibility": asset_technology.visibility, + "sort_priority": asset_technology.sort_priority, }