File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,13 @@ def get_table(self):
33
33
Return a table object to use. The table has automatic support for
34
34
sorting and pagination.
35
35
"""
36
+ options = {}
36
37
table_class = self .get_table_class ()
37
38
table = table_class (self .get_table_data ())
38
- RequestConfig (self .request , paginate = self .get_table_pagination ()).configure (table )
39
+ paginate = self .get_table_pagination ()
40
+ if paginate is not None :
41
+ options ['paginate' ] = paginate
42
+ RequestConfig (self .request , ** options ).configure (table )
39
43
return table
40
44
41
45
def get_table_class (self ):
@@ -71,7 +75,7 @@ def get_table_pagination(self):
71
75
Returns pagination options: True for standard pagination (default),
72
76
False for no pagination, and a dictionary for custom pagination.
73
77
"""
74
- return self .table_pagination or True
78
+ return self .table_pagination
75
79
76
80
def get_context_data (self , ** kwargs ):
77
81
"""
You can’t perform that action at this time.
0 commit comments