server reinstall
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user