1
0
Fork 0
forked from DGNum/gestioCOF

Merge branch 'Aufinal/single_checkout' into 'master'

Fix "Checkout is not iterable" error

See merge request 
This commit is contained in:
Martin Pepin 2021-02-07 16:40:48 +01:00
commit 63eeb5b7a9

View file

@ -1476,7 +1476,7 @@ def history_json(request):
opegroups = opegroups.filter(at__lt=end)
transfergroups = transfergroups.filter(at__lt=end)
if checkout:
opegroups = opegroups.filter(checkout__in=checkout)
opegroups = opegroups.filter(checkout=checkout)
transfergroups = TransferGroup.objects.none()
if transfers_only:
opegroups = OperationGroup.objects.none()