Skip to content

Commit

Permalink
fix(api): make network results distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Aug 27, 2024
1 parent 37e527c commit e1635f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_ontology/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ def get_queryset(self):
other_id=Case(
When(subj=OuterRef("pk"), then="obj"),
default="subj")).values("other_id")
return RootObject.objects_inheritance.select_subclasses().annotate(related_to=ArraySubquery(relation_subquery))
return RootObject.objects_inheritance.select_subclasses().annotate(related_to=ArraySubquery(relation_subquery)).distinct()

0 comments on commit e1635f1

Please sign in to comment.