Marking orders as paid now ignores waiting list

This commit is contained in:
Raphael Michel
2017-10-24 12:45:24 +02:00
parent c33fc7630e
commit cb6f6247fd
6 changed files with 48 additions and 7 deletions

View File

@@ -210,7 +210,8 @@ class OrderTransition(OrderView):
to = self.request.POST.get('status', '')
if self.order.status in (Order.STATUS_PENDING, Order.STATUS_EXPIRED) and to == 'p':
try:
mark_order_paid(self.order, manual=True, user=self.request.user)
mark_order_paid(self.order, manual=True, user=self.request.user,
count_waitinglist=False)
except Quota.QuotaExceededException as e:
messages.error(self.request, str(e))
except SendMailException: