Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Merge branch 'master' into python3-super-syntax
Patryk Zawadzki17a239d111bc
diff --cc saleor/dashboard/order/forms.pyindex c04c67eff3,2563dcc983..123cc3c176--- a/saleor/dashboard/order/forms.py+++ b/saleor/dashboard/order/forms.py@@@ -340,7 -328,8 +328,8 @@@ class AddVariantToDeliveryGroupForm(fordef __init__(self, *args, **kwargs):self.group = kwargs.pop('group')+ self.discounts = kwargs.pop('discounts')- super(AddVariantToDeliveryGroupForm, self).__init__(*args, **kwargs)+ super().__init__(*args, **kwargs)def clean(self):""" Checks if given quantity is available in stocks. """diff --cc saleor/order/models.pyindex 35eec048b4,8f12d1fa57..798b48a4a9--- a/saleor/order/models.py+++ b/saleor/order/models.py@@@ -170,17 -194,11 +194,11 @@@ class Order(models.Model, ItemSet)def get_subtotal_without_voucher(self):if self.get_lines():- return super(Order, self).get_total()+ return super().get_total()return Price(net=0, currency=settings.DEFAULT_CURRENCY)- def get_total_shipping(self):- costs = [group.shipping_price for group in self]- if costs:- return sum(costs[1:], costs[0])- return Price(net=0, currency=settings.DEFAULT_CURRENCY)-def can_cancel(self):- return self.status not in {OrderStatus.CANCELLED, OrderStatus.SHIPPED}+ return self.status == OrderStatus.OPENclass DeliveryGroup(models.Model, ItemSet):