Beispiel #1
0
 def save(self, *args, **kwargs):
     if not self.slug:
         self.slug = generate_unique_slug(self, u'title', u'slug')
     super(Category, self).save(*args, **kwargs)
Beispiel #2
0
 def save(self, *args, **kwargs):
     if not self.slug:
         self.slug = generate_unique_slug(self, u'name', u'slug')
     super(Speaker, self).save(*args, **kwargs)