Fix failure of cancel_order with Celery 4

This commit is contained in:
Raphael Michel
2017-01-09 20:19:26 +01:00
parent e6a6043a7a
commit 59d440b213

View File

@@ -171,7 +171,7 @@ def _cancel_order(order, user=None):
if position.voucher:
Voucher.objects.filter(pk=position.voucher.pk).update(redeemed=F('redeemed') - 1)
return order
return order.pk
class OrderError(LazyLocaleException):