Example #1
0
 def normalized_tags(tags):
     return list(set(utils.slugify(x.lower()) for x in tags))
Example #2
0
 def tag_pairs(self):
     return [(x, utils.slugify(x.lower())) for x in self.tags]
Example #3
0
 def save(self, *args, **kwargs):
     if not self.slug:
         self.slug = slugify(self.title, instance=self)
     super(Post, self).save(*args, **kwargs)