server reinstall

This commit is contained in:
Parsa Nazer
2025-01-19 22:21:22 +03:30
parent 60ec331fa0
commit 2bbf37a327
+1
View File
@@ -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)