Skip to content

Commit

Permalink
[addressbook] add distinct to queryset when searching for organizatio…
Browse files Browse the repository at this point in the history
…ns to prevent dups
  • Loading branch information
glibersat committed Feb 10, 2025
1 parent aa89ed4 commit e1dc3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recoco/apps/addressbook/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def filter_queryset(self, queryset):
for backend in backends:
queryset = backend().filter_queryset(self.request, queryset, self)

return queryset
return queryset.distinct()

def get_serializer_class(self):
match self.action:
Expand Down

0 comments on commit e1dc3b4

Please sign in to comment.