3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-12-24 16:03:47 +00:00

Fix de la liste des futs

This commit is contained in:
Yoann Pétri 2019-01-24 22:26:38 +01:00
parent 787d5fa2ba
commit 3090356842

View file

@ -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})