From 77e65bbae4990d39f4d110971dc96e36ac943c68 Mon Sep 17 00:00:00 2001 From: Tomasz Zielinski Date: Thu, 8 Dec 2011 15:02:01 +0100 Subject: Removed unused methods from AnswerManager --- askbot/models/answer.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/askbot/models/answer.py b/askbot/models/answer.py index fd1c13f6..745fc1c0 100644 --- a/askbot/models/answer.py +++ b/askbot/models/answer.py @@ -51,22 +51,6 @@ class AnswerManager(models.Manager): return answer - #todo: I think this method is not being used anymore, I'll just comment it for now -# def get_author_list(self, **kwargs): -# authors = set() -# for answer in self: -# authors.update(answer.get_author_list(**kwargs)) -# return list(authors) - - #todo: I think this method is not being used anymore, I'll just comment it for now - #def get_answers_from_questions(self, user_id): - # """ - # Retrieves visibile answers for the given question. Which are not included own answers - # """ - # cursor = connection.cursor() - # cursor.execute(self.GET_ANSWERS_FROM_USER_QUESTIONS, [user_id, user_id]) - # return cursor.fetchall() - class Answer(content.Content): post_type = 'answer' question = models.ForeignKey('Question', related_name='answers') -- cgit v1.2.3-1-g7c22