summaryrefslogtreecommitdiffstats
path: root/askbot/views/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/views/commands.py')
-rw-r--r--askbot/views/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/views/commands.py b/askbot/views/commands.py
index 04d4ef1b..83c8c42e 100644
--- a/askbot/views/commands.py
+++ b/askbot/views/commands.py
@@ -435,7 +435,7 @@ def api_get_questions(request):
question_list.append({
'url': question.get_absolute_url(),
'title': question.title,
- 'answer_count': question.answer_count
+ 'answer_count': question.thread.answer_count
})
json_data = simplejson.dumps(question_list)
return HttpResponse(json_data, mimetype = "application/json")