forked from CGM_Public/pretix_original
Fix failure of cancel_order with Celery 4
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user