Don't slugify product names - we'll do it manually

This commit is contained in:
Víðir Valberg Guðmundsson 2016-05-31 19:10:19 +02:00
parent 30b86536a2
commit 385fb6f075

View file

@ -212,10 +212,6 @@ class Product(CreatedUpdatedModel, UUIDModel):
self.price,
)
def save(self, **kwargs):
self.slug = slugify(self.name)
super(Product, self).save(**kwargs)
def is_available(self):
now = timezone.now()
return now in self.available_in