Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Don't throw iter exception in DeliveryGroup
Anna Siwikcea034c69192
diff --git a/saleor/order/models.py b/saleor/order/models.pyindex 80e62427d3..ab620fd424 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -212,9 +212,7 @@ class DeliveryGroup(models.Model):return '%s(%r)' % (self.__class__.__name__, list(self))def __iter__(self):- if self.id:- return iter(self.lines.all())- raise NotImplementedError()+ return iter(self.lines.all())@transition(field=status, source=GroupStatus.NEW, target=GroupStatus.NEW)