Explorar o código

HUE-5231 [search] Bump default number of rows in grid result to 25

Romain Rigaux %!s(int64=9) %!d(string=hai) anos
pai
achega
f5ab2ed136
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/search/src/search/models.py

+ 2 - 2
apps/search/src/search/models.py

@@ -470,7 +470,7 @@ class Collection2(object):
 
     # For backward compatibility
     if 'rows' not in props['collection']['template']:
-      props['collection']['template']['rows'] = 10
+      props['collection']['template']['rows'] = 25
     if 'showGrid' not in props['collection']['template']:
       props['collection']['template']['showGrid'] = True
     if 'showChart' not in props['collection']['template']:
@@ -580,7 +580,7 @@ class Collection2(object):
       "fieldsAttributes": [self._make_gridlayout_header_field(field) for field in fields],
       "fieldsSelected": [],
       "leafletmap": {'latitudeField': None, 'longitudeField': None, 'labelField': None},
-      "rows": 10,
+      "rows": 25,
     }
 
     FACETS = []