Skip to content
Snippets Groups Projects
Commit 8f4f983c authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

correct results list of compounds query by selecting distinct values

Former-commit-id: fcbcd2c373a91d833cc3934fd9f99d73dfb17c57
parent 77fd3c30
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,7 @@ def compound_list(request):
boundcomplexes = ProteinDomainBoundComplex.objects.exclude(id__in=request.GET.getlist('boundcomplex'))
if boundcomplexes_all is None:
boundcomplexes = boundcomplexes[:5]
compounds = compounds.distinct()
count = compounds.count()
# handle pagination in compounds list
paginator = Paginator(compounds, 12)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment