X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/90c94238301b5d208461f810021e572a9b06e8e7..8c29337f201187a1d8aa0110c9faf36b5d4f9219:/forum/views/readers.py diff --git a/forum/views/readers.py b/forum/views/readers.py index fbc0ed1..e092922 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -267,7 +267,7 @@ def answer_redirect(request, answer): else: raise Http404() - count = answer.question.answers.filter(Q(marked=True) | filter).count() + count = answer.question.answers.filter(Q(marked=True) | filter).exclude(state_string="(deleted)").count() pagesize = pc.pagesize(request) page = count / pagesize