From 1e0edc1b7a304b3542970fe9917627276e369e11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Mon, 29 Jan 2018 10:39:59 +0100
Subject: [PATCH] minor optimisation on the way we create the compounds query

Former-commit-id: 8fccba91853c07497010a47b5efd6ff0fb1fd502
---
 ippisite/ippidb/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ippisite/ippidb/views.py b/ippisite/ippidb/views.py
index e06ba576..f4056df8 100644
--- a/ippisite/ippidb/views.py
+++ b/ippisite/ippidb/views.py
@@ -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'))
-- 
GitLab