From c605f2bc0bc4b098e231b6469f588605e96e4dd9 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 27 Nov 2015 09:25:44 +0200 Subject: Fixed issue with pagination --- servo/views/note.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'servo/views') 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()) -- cgit v1.2.3