]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/readers.py
Previous feature addition commit introduced errors; rolling back to previous revision...
[osqa.git] / forum / views / readers.py
index fbc0ed19233f8dbdc42f1a53d6ec15c0a3c4c510..e0929220b6b0dfa5d9f3a1967d71b0b18ba42b45 100644 (file)
@@ -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