Skip to content

Commit

Permalink
#fix apply distinct for when - foreign key returns multiple and same …
Browse files Browse the repository at this point in the history
…objects
  • Loading branch information
D-GopalKrishna committed Mar 20, 2024
1 parent 9073990 commit f5526a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def fts_and_filter_search(page: int = 0, size: int = 10, search: str = '', filte
base_query
.filter(convert_filters_to_q(filters))
.select_related("vendor").prefetch_related("species")
)
).distinct()

antibodies_count = filtered_antibodies.count()
if antibodies_count == 0:
Expand Down

0 comments on commit f5526a5

Please sign in to comment.