mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
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:
|
if position.voucher:
|
||||||
Voucher.objects.filter(pk=position.voucher.pk).update(redeemed=F('redeemed') - 1)
|
Voucher.objects.filter(pk=position.voucher.pk).update(redeemed=F('redeemed') - 1)
|
||||||
|
|
||||||
return order
|
return order.pk
|
||||||
|
|
||||||
|
|
||||||
class OrderError(LazyLocaleException):
|
class OrderError(LazyLocaleException):
|
||||||
|
|||||||
Reference in New Issue
Block a user