From 30903568422d3a86cbc0b213f25a7d0848cbddc1 Mon Sep 17 00:00:00 2001 From: Nanoy Date: Thu, 24 Jan 2019 22:26:38 +0100 Subject: [PATCH] Fix de la liste des futs --- gestion/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/views.py b/gestion/views.py index ff9fbd2..faec082 100644 --- a/gestion/views.py +++ b/gestion/views.py @@ -753,7 +753,7 @@ def kegsList(request): :template:`gestion/kegs_list.html` """ kegs_active = KegHistory.objects.filter(isCurrentKegHistory=True) - ids_actives = kegs_active.values('id') + ids_actives = kegs_active.values('keg__id') kegs_inactive = Keg.objects.exclude(id__in = ids_actives) return render(request, "gestion/kegs_list.html", {"kegs_active": kegs_active, "kegs_inactive": kegs_inactive})