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

minor optimisation on the way we create the compounds query

Former-commit-id: 8fccba91853c07497010a47b5efd6ff0fb1fd502
parent fb22bb68
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,7 @@ def compound_list(request):
"""
Display the list of compounds
"""
compounds = Compound.objects.all().order_by('id')
compounds = Compound.objects.order_by('id')
# if filtering on "action on PPI"
if request.GET.get('ppi'):
compounds = compounds.filter(compoundaction__ppi__id__in=request.GET.getlist('ppi'))
......
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