def save(self, *args, **kwargs): if not self.slug or self.slug == '': self.slug = create_slug(Customer, unicode(self)) super(Customer, self).save(*args, **kwargs)
def save(self, *args, **kwargs): if not self.slug or self.slug == "": self.slug = create_slug(Reaction, unicode(self)) super(Reaction, self).save(*args, **kwargs)