Skip to content

Commit

Permalink
fix(serializers): fix return value of related_to in network
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Aug 28, 2024
1 parent e1635f1 commit 49b70d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_ontology/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,5 @@ def get_type(self, obj) -> str:
content_type = ContentType.objects.get_for_model(obj)
return content_type.name

def get_related_to(self, obj) -> [int]:
def get_related_to(self, obj) -> list[int]:
return sorted(set(obj.related_to))

0 comments on commit 49b70d8

Please sign in to comment.