Example #1
0
 def save(self):
     if not self.id:
         self.pub_date = datetime.now()
     unique_slugify(self, self.maintext) # make sure slug is unique
     super(Story, self).save()
     return True
Example #2
0
 def save(self):
     unique_slugify(self, self.text)
     super(Quote, self).save()
     return True