forked from CGM_Public/pretix_original
Unify spelling of 'canceled'
Issue 187 Remove typeahead JS file.
This commit is contained in:
@@ -150,10 +150,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