mirror of
https://github.com/nanoy42/coope
synced 2024-12-25 00:13:46 +00:00
Fix de la liste des futs
This commit is contained in:
parent
787d5fa2ba
commit
3090356842
1 changed files with 1 additions and 1 deletions
|
@ -753,7 +753,7 @@ def kegsList(request):
|
||||||
:template:`gestion/kegs_list.html`
|
:template:`gestion/kegs_list.html`
|
||||||
"""
|
"""
|
||||||
kegs_active = KegHistory.objects.filter(isCurrentKegHistory=True)
|
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)
|
kegs_inactive = Keg.objects.exclude(id__in = ids_actives)
|
||||||
return render(request, "gestion/kegs_list.html", {"kegs_active": kegs_active, "kegs_inactive": kegs_inactive})
|
return render(request, "gestion/kegs_list.html", {"kegs_active": kegs_active, "kegs_inactive": kegs_inactive})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue