diff --git a/backend/product/models.py b/backend/product/models.py index af0f400..99d838a 100644 --- a/backend/product/models.py +++ b/backend/product/models.py @@ -97,6 +97,7 @@ class ProductModel(models.Model): def __str__(self): return self.name + def save(self, *args, **kwargs): if not self.slug: self.slug = slugify(self.name, allow_unicode=True)