Example #1
0
 def generate_slug(self):
     if self.title:
         self.slug = slugify(self.title)
Example #2
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.slug = slugify(self.name)
Example #3
0
 def generate_slug(self):
     if self.name:
         self.slug = slugify(self.name)