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

order compounds list for the sake of pagination consistency

Former-commit-id: 1481b5ad9a84c07c5fa4deaa4882615725d7a26f
parent 35898053
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ def compound_list(request):
"""
Display the list of compounds
"""
compounds = Compound.objects.all()
compounds = Compound.objects.all().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