def save(self, *args, **kwargs): """ Save generation slug """ if not self.id: self.slug = gen_slug_clear(self.name) super().save(*args, **kwargs)
def save(self, *args, **kwargs): """ Get 'name' to generate slug which calls transliterate -'name' """ if not self.id: self.slug = gen_slug_clear(self.name) super().save(*args, **kwargs)