Skip to content

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

Fix review remarks

fowczarekf3a013d9841b
diff --git a/saleor/product/tasks.py b/saleor/product/tasks.py
index 49a3b5c90f..24f06df43b 100644
--- a/saleor/product/tasks.py
+++ b/saleor/product/tasks.py
@@ -5,9 +5,9 @@ from .utils.attributes import get_name_from_attributes
def _update_variants_names(instance, saved_attributes):
- """After change in attribute value name, all product variant names
- should be updated. Products variant name created from attribute
- names of variants."""
+ """Product variant names are created from names of assigned attributes.
+ After change in attribute value name, for all product variants using this
+ attributes we need to update the names."""
initial_attributes = set(instance.variant_attributes.all())
attributes_changed = initial_attributes.intersection(saved_attributes)
if not attributes_changed: