From 2a6275cffb544e6a9af6aaaa901ace2569bbe907 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Fri, 6 Nov 2009 17:16:48 -0600 Subject: [PATCH] Some model updates. --- tweepy/models.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tweepy/models.py b/tweepy/models.py index 157271b..609730e 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -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 = { -- 2.25.1