Skip to content

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

Fix get_formfield_name

michal0166b9af89ea
diff --git a/saleor/product/models.py b/saleor/product/models.py
index 5d5e7b1139..136acae7f0 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -376,8 +376,8 @@ class ProductAttribute(models.Model):
def __str__(self):
return self.name
- def get_formfield_name(self):
- return slugify('attribute-%s' % self.slug)
+ def get_formfield_name(self, allow_unicode=True):
+ return slugify('attribute-%s' % self.slug, allow_unicode=allow_unicode)
def has_values(self):
return self.values.exists()