Skip to content

Commit

Permalink
Merge pull request #1531 from gustavomm19/technology-priority
Browse files Browse the repository at this point in the history
add sort priority to serializer
  • Loading branch information
tommygonzaleza authored Jan 10, 2025
2 parents fccaf39 + 706750b commit 9326a47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions breathecode/registry/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
1 change: 1 addition & 0 deletions breathecode/registry/tests/urls/v1/tests_technology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}


Expand Down

0 comments on commit 9326a47

Please sign in to comment.