From 92ec85dbbdf65e16da7595d6ae30eae8698a49d9 Mon Sep 17 00:00:00 2001 From: Hugo Manet Date: Wed, 7 Dec 2016 21:35:27 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20.distinct()=20dans=20la=20select?= =?UTF-8?q?ion=20des=20articles=20li=C3=A9s=20=C3=A0=20un=20supplier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kfet/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kfet/views.py b/kfet/views.py index 3f1e1f4d..039aa65a 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -1679,6 +1679,7 @@ def order_create(request, pk): articles = (Article.objects .filter(suppliers=supplier.pk) + .distinct() .select_related('category') .order_by('category__name', 'name'))