Unify spelling of 'canceled'

Issue 187
Remove typeahead JS file.
This commit is contained in:
Flavia Bastos
2016-09-20 14:53:12 -06:00
parent 515e9e574d
commit 8ef6439c44
25 changed files with 78 additions and 78 deletions

View File

@@ -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)