Reduced the max number of results returned by document searches from 500 to 200, for a better user experience. A faster return and a search term tweak to pinpoint the desired search result is better than a long wait and then maybe having to tweak the search terms anyway.

- Legacy-Id: 15027
This commit is contained in:
Henrik Levkowetz 2018-04-07 10:12:13 +00:00
parent 9bd18df83b
commit bac162d0d0

View file

@ -134,7 +134,7 @@ def fill_in_document_table_attributes(docs, have_telechat_date=False):
l.sort()
def prepare_document_table(request, docs, query=None, max_results=500):
def prepare_document_table(request, docs, query=None, max_results=200):
"""Take a queryset of documents and a QueryDict with sorting info
and return list of documents with attributes filled in for
displaying a full table of information about the documents, plus