Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Order by id by default for CartLine

Unknownc0d259526af4
diff --git a/saleor/checkout/models.py b/saleor/checkout/models.py
index 75844394ca..32a91544e9 100644
--- a/saleor/checkout/models.py
+++ b/saleor/checkout/models.py
@@ -128,6 +128,7 @@ class CartLine(models.Model):
class Meta:
unique_together = ('cart', 'variant', 'data')
+ ordering = ('id',)
def __str__(self):
return smart_str(self.variant)