X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/7f4982393567a5f6827c12a089363d91338f9f13..8b123b1f0d204c972d5a2554f9b27e4f7d8ae33f:/forum/models/question.py?ds=sidebyside diff --git a/forum/models/question.py b/forum/models/question.py index ef4a37d..136d3de 100644 --- a/forum/models/question.py +++ b/forum/models/question.py @@ -60,21 +60,7 @@ class Question(Node): return [Question.objects.get(id=r['id']) for r in related_list] - def get_active_users(self): - active_users = set() - - active_users.add(self.author) - - for answer in self.answers: - active_users.add(answer.author) - - for comment in answer.comments: - active_users.add(comment.author) - - for comment in self.comments: - active_users.add(comment.author) - - return active_users + class QuestionSubscription(models.Model):