Skip to content

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

Add docstring to OrderLine queryset methods

Maciej Korycinski42a10fc022d8
diff --git a/saleor/order/models.py b/saleor/order/models.py
index 94b2fe0134..09168139a9 100644
--- a/saleor/order/models.py
+++ b/saleor/order/models.py
@@ -288,11 +288,13 @@ class Order(models.Model):
class OrderLineQueryset(models.QuerySet):
def digital(self):
+ """Returns lines with digital products"""
for line in self.all():
if line.is_digital:
yield line
def physical(self):
+ """Returns lines with physical products"""
for line in self.all():
if not line.is_digital:
yield line