Fixed bug introduced in last commit

This commit is contained in:
Raphael Michel
2016-09-17 23:50:56 +02:00
parent 5a9c760633
commit 96828c3f5a

View File

@@ -61,7 +61,7 @@ def _re_add_expired_positions(items: List[dict], event: Event, cart_id: str, now
'count': 1,
'price': cp.price,
'cp': cp,
'voucher': cp.voucher.code
'voucher': cp.voucher.code if cp.voucher else None
})
positions.add(cp)
return positions