def save(self, *args, **kwargs): self.slug = self.slug or get_slug(Product, self.name) super(Product, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.slug = self.slug or get_slug(Page, self.title) super(Page, self).save(*args, **kwargs)