Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix mistakes in comments
Marcin Gębala639a7cc7a473
diff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.pyindex 9090544d93..d7cfd2541c 100644--- a/saleor/graphql/product/types.py+++ b/saleor/graphql/product/types.py@@ -162,7 +162,7 @@ class ProductVariant(CountableDjangoObjectType):def resolve_quantity_ordered(self, info):# This field is added through annotation when using the- # `resolve_top_products` resolver.+ # `resolve_report_product_sales` resolver.return getattr(self, 'quantity_ordered', None)diff --git a/saleor/order/models.py b/saleor/order/models.pyindex 3e003a5ff5..45df85939c 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -29,7 +29,7 @@ from ..shipping.models import ShippingMethodclass OrderQueryset(models.QuerySet):def confirmed(self):- """Return draft orders."""+ """Return non-draft orders."""return self.exclude(status=OrderStatus.DRAFT)def drafts(self):