Skip to content

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

Delete allow_unicode from get_formfield_name params

michalc521af29065a
diff --git a/saleor/product/models.py b/saleor/product/models.py
index 136acae7f0..0868d9a172 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, allow_unicode=True):
- return slugify('attribute-%s' % self.slug, allow_unicode=allow_unicode)
+ def get_formfield_name(self):
+ return slugify('attribute-%s' % self.slug, allow_unicode=True)
def has_values(self):
return self.values.exists()