diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-12-09 11:09:32 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-12-09 11:09:32 +0200 |
commit | e524535756b3a6dafd026161d440e3d6a94ab248 (patch) | |
tree | c259856d3b039f8e768ffb36baad369e14c7ddff | |
parent | 60a99aa4b4f484bf4ab2eb378ee24a34d18aa3c8 (diff) | |
download | Servo-e524535756b3a6dafd026161d440e3d6a94ab248.tar.gz Servo-e524535756b3a6dafd026161d440e3d6a94ab248.tar.bz2 Servo-e524535756b3a6dafd026161d440e3d6a94ab248.zip |
Fix issue in notes advanced search
-rw-r--r-- | servo/views/note.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/servo/views/note.py b/servo/views/note.py index 7a8feaf..5cd47c8 100644 --- a/servo/views/note.py +++ b/servo/views/note.py @@ -326,6 +326,9 @@ def view_note(request, kind, pk): def find(request): + """ + Notes advanced search + """ form = NoteSearchForm(request.GET) results = Note.objects.none() @@ -346,7 +349,7 @@ def find(request): results = results.order_by('-created_at') title = _('Message search') - notes = paginate(request, request.GET.get('page'), 10) + notes = paginate(results, request.GET.get('page'), 10) return render(request, "notes/find.html", locals()) |