def save(self, *args, **kwargs): """ Make sure twitter is normalized """ unique_slugify(self, self.name) if self.twitter_name and self.twitter_name[0] != "@": self.twitter_name = "@%s" % self.twitter_name super(self.__class__, self).save(*args, **kwargs)
def save(self, *args, **kwargs): if not self.slug: unique_slugify(self, self.title) return super(TitleAndSlugModel, self).save(*args, **kwargs)
def save(self, *args, **kwargs): unique_slugify(self, self.name) super(self.__class__, self).save(*args, **kwargs)