mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Merge remote-tracking branch 'remotes/flaviabastos/187_unify_canceled_spelling'
This commit is contained in:
@@ -152,10 +152,10 @@ def _cancel_order(order, user=None):
|
||||
with order.event.lock():
|
||||
if order.status != Order.STATUS_PENDING:
|
||||
raise OrderError(_('You cannot cancel this order.'))
|
||||
order.status = Order.STATUS_CANCELLED
|
||||
order.status = Order.STATUS_CANCELED
|
||||
order.save()
|
||||
|
||||
order.log_action('pretix.event.order.cancelled', user=user)
|
||||
order.log_action('pretix.event.order.canceled', user=user)
|
||||
i = order.invoices.filter(is_cancellation=False).last()
|
||||
if i:
|
||||
generate_cancellation(i)
|
||||
|
||||
Reference in New Issue
Block a user