From a5b67300c9da27c566df406ec34443a542dd9648 Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Wed, 22 Apr 2020 17:14:49 +0000 Subject: [PATCH] Fix number of results in pagination for machine history --- logs/views.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/logs/views.py b/logs/views.py index 7e6df54a..2ee1b0c7 100644 --- a/logs/views.py +++ b/logs/views.py @@ -493,10 +493,12 @@ def stats_search_machine_history(request): history_form.cleaned_data.get("q", ""), history_form.cleaned_data ) - max_result = GeneralOption.get_cached_value("search_display_page") - re2o_paginator(request, - events, - max_result) + max_result = GeneralOption.get_cached_value("pagination_number") + events = re2o_paginator( + request, + events, + max_result + ) return render( request,