From 5f7a18836cd531441fdf907d2a91bcc34c811ddd Mon Sep 17 00:00:00 2001 From: gustavomm19 Date: Fri, 10 Jan 2025 17:17:24 +0000 Subject: [PATCH 1/2] add sort priority to serializer --- breathecode/registry/serializers.py | 1 + 1 file changed, 1 insertion(+) 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) From 706750b0b0e517e63c6e90305723f1d05a516070 Mon Sep 17 00:00:00 2001 From: gustavomm19 Date: Fri, 10 Jan 2025 17:39:12 +0000 Subject: [PATCH 2/2] fix test --- breathecode/registry/tests/urls/v1/tests_technology.py | 1 + 1 file changed, 1 insertion(+) 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, }