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
def save(self): unique_slugify(self, self.text) super(Quote, self).save() return True