]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/users.py
Fixes a bug in the user profile.
[osqa.git] / forum / views / users.py
index 8441f96dd64fd1b169753d0007fcfa9127f29af2..0eeb122d29e8ff74d47762d4da60e6db16717e29 100644 (file)
@@ -315,7 +315,7 @@ def user_profile(request, user):
               Badge.objects.filter(awards__user=user).values('id').annotate(count=Count('cls')).order_by('-count')]\r
 \r
     return pagination.paginated(request, (\r
-    ('questions', QuestionListPaginatorContext('USER_QUESTION_LIST', _('questions'), 15)),\r
+    ('questions', QuestionListPaginatorContext('USER_QUESTION_LIST', _('questions'), default_pagesize=15)),\r
     ('answers', UserAnswersPaginatorContext())), {\r
     "view_user" : user,\r
     "questions" : questions,\r