Fixed a problem with cancellations

This commit is contained in:
Raphael Michel
2016-04-10 16:01:55 +02:00
parent 403057f3e5
commit eafbe95370
2 changed files with 3 additions and 3 deletions

View File

@@ -292,7 +292,7 @@ class OrderCancelDo(EventViewMixin, OrderDetailMixin, AsyncAction, View):
def post(self, request, *args, **kwargs):
if not self.order:
raise Http404(_('Unknown order code or not authorized to access this order.'))
return self.do(self.order)
return self.do(self.order.pk)
def get_context_data(self, **kwargs):
ctx = super().get_context_data(**kwargs)