Skip to content

Commit

Permalink
fix(api): make to a full object
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jun 4, 2024
1 parent 3c82023 commit 922ec44
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 @@ -58,7 +58,7 @@ def get_family_relation(self, obj):
return True
return False

@extend_schema_field(OpenApiTypes.OBJECT)
@extend_schema_field(SimpleObjectSerializer())
def get_to(self, obj):
if self.context["obj"] == obj.obj:
return SimpleObjectSerializer(obj.subj).data
Expand Down

0 comments on commit 922ec44

Please sign in to comment.