Let grids be paginated even when they have no model class
This commit is contained in:
parent
582aabc1a3
commit
50d6f1f95a
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue