示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)