예제 #1
0
 def save(self):
     if not self.id:
         self.slug = slugify(self.description)
         self.saved_date = time_to_settings(self.saved_date)
     self._process_tags()
     if self.remove_image:
         self._delete_image()
     self._process_markup()
     if self.post_elsewhere:
         self._post_to_delicious()
     super(Bookmark, self).save()
예제 #2
0
 def save(self):
     if not self.id:
         self.pub_time = time_to_settings(self.pub_time)
     super(Tweet, self).save()