Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Merge remote-tracking branch 'upstream/master' into display-correctly-for-order-without-payments
Unknown3a418f24b219
diff --cc CHANGELOG.mdindex b736330e37,7faf27c714..c4510479cc--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -16,4 -16,4 +16,5 @@@ All notable, unreleased changes to thi- Add charges taxes on shipping field to shop settings in GraphQL Api - #3603 by @fowczarek- Make order fields sequence same as dashboard 2.0 - #3606 by @jxltom- Fix bug where orders can not be filtered by payment status - #3608 by @jxltom+ - Fix logo placement in dashboard 2.0 when the svg has specific width - #3609 by @jxltom+- Support get correct payment status for order without any payments - #3605 by @jxltomdiff --cc saleor/order/models.pyindex 99bc63e361,a6c4abd644..5d27dc44b2--- a/saleor/order/models.py+++ b/saleor/order/models.py@@@ -176,13 -176,13 +176,13 @@@ class Order(models.Model)def get_last_payment(self):return max(self.payments.all(), default=None, key=attrgetter('pk'))- def get_last_payment_status(self):+ def get_payment_status(self):last_payment = self.get_last_payment()if last_payment:- return last_payment.get_charge_status_display()+ return last_payment.charge_status- return None+ return ChargeStatus.NOT_CHARGED- def get_last_payment_status_display(self):+ def get_payment_status_display(self):last_payment = self.get_last_payment()if last_payment:return last_payment.get_charge_status_display()