Cancellation/refund: prefer placeholder over value

This commit is contained in:
Raphael Michel
2020-05-28 18:55:37 +02:00
parent dcc54a0204
commit 1c8468c21b
3 changed files with 16 additions and 4 deletions

View File

@@ -968,7 +968,7 @@ class OrderTransition(OrderView):
instance=self.order,
data=self.request.POST if self.request.method == "POST" else None,
initial={
'cancellation_fee': self.req.cancellation_fee if self.req else Decimal('0.00')
'cancellation_fee': self.req.cancellation_fee if self.req else None
}
)