Skip to content

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

update fields on category slug

Piotr Antosz7f106f47a175
diff --git a/saleor/product/migrations/0112_auto_20200129_0050.py b/saleor/product/migrations/0112_auto_20200129_0050.py
index 8f9a9e32ce..5965607b99 100644
--- a/saleor/product/migrations/0112_auto_20200129_0050.py
+++ b/saleor/product/migrations/0112_auto_20200129_0050.py
@@ -67,6 +67,7 @@ def update_non_unique_slugs_for_models(apps, schema_editor):
slugs_counter[instance.slug] -= 1
slug = update_slug_to_unique_value(instance.slug, slugs_counter)
instance.slug = slug
+ instance.save(update_fields=["slug"])
slugs_counter[slug] += 1