summaryrefslogtreecommitdiffstats
path: root/askbot/views/readers.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2014-07-11 23:48:41 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2014-07-11 23:48:59 -0300
commitd26ab50da99b50bdd6e6cdb9dc60bceed8553def (patch)
tree90437884ac911d6112afa77b17d31d0f6123a865 /askbot/views/readers.py
parente774033ff1382c859afba53c868c24b3cf6953a9 (diff)
downloadaskbot-d26ab50da99b50bdd6e6cdb9dc60bceed8553def.tar.gz
askbot-d26ab50da99b50bdd6e6cdb9dc60bceed8553def.tar.bz2
askbot-d26ab50da99b50bdd6e6cdb9dc60bceed8553def.zip
initial work to show pending posts to authors with premoderation mode
Diffstat (limited to 'askbot/views/readers.py')
-rw-r--r--askbot/views/readers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/askbot/views/readers.py b/askbot/views/readers.py
index 80f1d2ec..e90b7e97 100644
--- a/askbot/views/readers.py
+++ b/askbot/views/readers.py
@@ -382,6 +382,8 @@ def tags(request):#view showing a listing of available tags - plain list
def question(request, id):#refactor - long subroutine. display question body, answers and comments
"""view that displays body of the question and
all answers to it
+
+ todo: convert this view into class
"""
#process url parameters
#todo: fix inheritance of sort method from questions
@@ -506,7 +508,7 @@ def question(request, id):#refactor - long subroutine. display question body, an
#load answers and post id's->athor_id mapping
#posts are pre-stuffed with the correctly ordered comments
- updated_question_post, answers, post_to_author, published_answer_ids = thread.get_cached_post_data(
+ updated_question_post, answers, post_to_author, published_answer_ids = thread.get_post_data_for_question_view(
sort_method=answer_sort_method,
user=request.user
)
@@ -514,7 +516,6 @@ def question(request, id):#refactor - long subroutine. display question body, an
updated_question_post.get_cached_comments()
)
-
#Post.objects.precache_comments(for_posts=[question_post] + answers, visitor=request.user)
user_votes = {}