Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Utilize prefetching in attribute values iteration (#9955)
Krzysztof Kwaśniak5ff4e447a8a7
diff --git a/saleor/order/notifications.py b/saleor/order/notifications.pyindex 80ff46aae3..3db895ced6 100644--- a/saleor/order/notifications.py+++ b/saleor/order/notifications.py@@ -54,12 +54,12 @@ def get_product_attributes(product):},"values": [{- "name": value.get("name"),- "value": value.get("value"),- "slug": value.get("slug"),- "file_url": value.get("file_url"),+ "name": value.name,+ "value": value.value,+ "slug": value.slug,+ "file_url": value.file_url,}- for value in attr.values.values("name", "value", "slug", "file_url")+ for value in attr.values.all()],})