Let grids be paginated even when they have no model class

This commit is contained in:
Lance Edgar 2018-01-06 19:21:45 -06:00
parent 582aabc1a3
commit 50d6f1f95a

View file

@ -813,9 +813,6 @@ class Grid(object):
Paginate the given data set according to current settings, and return Paginate the given data set according to current settings, and return
the result. the result.
""" """
if not self.model_class:
return data
# we of course assume our current page is correct, at first # we of course assume our current page is correct, at first
pager = self.make_pager(data) pager = self.make_pager(data)