diff options
author | CruiseDevice | 2020-04-13 17:27:49 +0530 |
---|---|---|
committer | CruiseDevice | 2020-04-13 17:27:49 +0530 |
commit | 2f9331717075b34534f2745706f57a98f7dce20d (patch) | |
tree | e942155f11e47299d7deb5447267c0055e49d4de /yaksh/models.py | |
parent | 0e6c7d589114450d5cd1bc581ee1692c235f1a73 (diff) | |
download | online_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.py | 2 |
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): |