Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update generate_unique_slug docstring
IKarbowiakc44531091d52
diff --git a/saleor/core/utils/__init__.py b/saleor/core/utils/__init__.pyindex cd0ac05965..7123a3490d 100644--- a/saleor/core/utils/__init__.py+++ b/saleor/core/utils/__init__.py@@ -125,6 +125,10 @@ def generate_unique_slug() -> str:"""Create unique slug for model instance.+ The function uses `django.utils.text.slugify` to generate a slug from+ the `slugable_value` of model field. If the slug already exists it adds+ a numeric suffix and increments it until a unique value is found.+Args:instance: model instance for which slug is createdslugable_value: value used to create slug