Exemplo n.º 1
0
 def save(self, *args, **kwargs):
     """ Save generation slug """
     if not self.id:
         self.slug = gen_slug_clear(self.name)
     super().save(*args, **kwargs)
Exemplo n.º 2
0
 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)