Allow to change canceled orders

This commit is contained in:
Raphael Michel
2021-05-13 16:31:32 +02:00
parent 1d7d2de482
commit cf9fd47d2b
4 changed files with 9 additions and 20 deletions

View File

@@ -1530,12 +1530,6 @@ class OrderChange(OrderView):
permission = 'can_change_orders'
template_name = 'pretixcontrol/order/change.html'
def dispatch(self, request, *args, **kwargs):
if self.order.status not in (Order.STATUS_PENDING, Order.STATUS_PAID):
messages.error(self.request, _('This action is only allowed for pending or paid orders.'))
return self._redirect_back()
return super().dispatch(request, *args, **kwargs)
@cached_property
def other_form(self):
return OtherOperationsForm(prefix='other', order=self.order,