aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-11-27 09:25:44 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-11-27 09:25:44 +0200
commitc605f2bc0bc4b098e231b6469f588605e96e4dd9 (patch)
tree09c367e2d1f40292845911f71f71ef2b66e150e8 /servo/views
parent1d41235ff6e81d2f1cf551786d0fa07ca56510fb (diff)
downloadServo-c605f2bc0bc4b098e231b6469f588605e96e4dd9.tar.gz
Servo-c605f2bc0bc4b098e231b6469f588605e96e4dd9.tar.bz2
Servo-c605f2bc0bc4b098e231b6469f588605e96e4dd9.zip
Fixed issue with pagination
Diffstat (limited to 'servo/views')
-rw-r--r--servo/views/note.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/servo/views/note.py b/servo/views/note.py
index 0d0dd27..e406cc1 100644
--- a/servo/views/note.py
+++ b/servo/views/note.py
@@ -346,9 +346,8 @@ def find(request):
results = results.order_by('-created_at')
title = _('Message search')
- notes = paginate(request, page, 10)
- page = request.GET.get("page")
-
+ notes = paginate(request, request.GET.get('page'), 10)
+
return render(request, "notes/find.html", locals())