summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorCruiseDevice2020-04-13 17:27:49 +0530
committerCruiseDevice2020-04-13 17:27:49 +0530
commit2f9331717075b34534f2745706f57a98f7dce20d (patch)
treee942155f11e47299d7deb5447267c0055e49d4de /yaksh/models.py
parent0e6c7d589114450d5cd1bc581ee1692c235f1a73 (diff)
downloadonline_test-2f9331717075b34534f2745706f57a98f7dce20d.tar.gz
online_test-2f9331717075b34534f2745706f57a98f7dce20d.tar.bz2
online_test-2f9331717075b34534f2745706f57a98f7dce20d.zip
Add feature to hide thread or comments
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index f9878e4..d76d6aa 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -2670,7 +2670,7 @@ class Thread(ForumBase):
return self.comment.last()
def get_comments_count(self):
- return self.comment.count()
+ return self.comment.filter(active=True).count()
class Comment(ForumBase):