Some model updates.
authorJosh Roesslein <jroesslein@gmail.com>
Fri, 6 Nov 2009 23:16:48 +0000 (17:16 -0600)
committerJosh Roesslein <jroesslein@gmail.com>
Fri, 6 Nov 2009 23:16:48 +0000 (17:16 -0600)
tweepy/models.py

index 157271bd47c059173929019c459464f797beac1e..609730e112b081a4cf257aa3553aebb111921481 100644 (file)
@@ -59,7 +59,7 @@ class User(Model):
 class DirectMessage(Model):
 
     def destroy(self):
-        return self._api.destroy_direct_message(id=self.id)
+        return self._api.destroy_direct_message(self.id)
 
 
 class Friendship(Model):
@@ -69,7 +69,8 @@ class Friendship(Model):
 
 class SavedSearch(Model):
 
-    pass
+    def destroy(self):
+        return self._api.destroy_saved_search(self.id)
 
 
 class SearchResult(Model):
@@ -78,11 +79,13 @@ class SearchResult(Model):
 
 class Retweet(Model):
 
-    pass
+    def destroy(self):
+        return self._api.destroy_status(self.id)
 
 class List(Model):
 
-    pass
+    def destroy(self):
+        return self._api.destroy_list(self.slug)
 
 # link up default model implementations.
 models = {