From c04b729c1dee14cee0b5655daece2814528cb859 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Mon, 20 Jun 2016 16:23:49 +0530 Subject: [PATCH] Set the minimum value to 50 and maximum value to 2000 for the items per page in the result grid --- web/pgadmin/tools/sqleditor/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/tools/sqleditor/__init__.py b/web/pgadmin/tools/sqleditor/__init__.py index 8de51d402..5435bf7dd 100644 --- a/web/pgadmin/tools/sqleditor/__init__.py +++ b/web/pgadmin/tools/sqleditor/__init__.py @@ -73,9 +73,10 @@ class SqlEditorModule(PgAdminModule): 'display', 'items_per_page', gettext("Items per page in grid"), 'integer', 50, category_label=gettext('Display'), - min_val=0, + min_val=50, + max_val=2000, help_str=gettext('The number of rows to display per page in the results grid. ' - 'A value of 0 will disable paging.') + 'Value should be between 50 and 2000.') ) self.explain_verbose = self.preference.register(