]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/users.py
Some fixes in the importer.
[osqa.git] / forum / views / users.py
index c55b7920bdde6e16c6b7f53ed515d9258d0d0585..fe7d7ec3534771ae0328a7740ea1cfbb232effa6 100644 (file)
@@ -173,7 +173,7 @@ def user_recent(request, user):
 \r
 @user_view('users/votes.html', 'votes', _('user vote record'), _('votes'), True)\r
 def user_votes(request, user):\r
-    votes = user.votes.filter(node__deleted=None).order_by('-voted_at')[:USERS_PAGE_SIZE]\r
+    votes = user.votes.filter(node__deleted=None, node__node_type__in=("question", "answer")).order_by('-voted_at')[:USERS_PAGE_SIZE]\r
 \r
     return {"view_user" : user, "votes" : votes}\r
 \r