diff options
Diffstat (limited to 'forum/views.py')
-rw-r--r-- | forum/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forum/views.py b/forum/views.py index 626c93a3..89d0cbfd 100644 --- a/forum/views.py +++ b/forum/views.py @@ -332,7 +332,7 @@ def question(request, id): answers = answers.select_related(depth=1) favorited = question.has_favorite_by_user(request.user) - if not request.user.is_anonymous(): + if request.user.is_authenticated(): question_vote = question.votes.select_related().filter(user=request.user) else: question_vote = None #is this correct? |