Maximum display length is hardcoded

Issue #1 resolved
Eric Gallimore created an issue

A maximum of 100 records are returned, regardless of the value of the iDisplayLength value. This is due to this line:

limit = min(int(self.request.REQUEST.get('iDisplayLength', 10)), 100)

When using the Scroller Datatables plugin, I routinely get iDisplayLength requests of 126.

I patched base_datatable_view.py to fix this (by adding an instance variable named max_display_length with a default of 200). The modified file is attached.

Comments (1)

  1. Log in to comment