def __init__(self, request, columns, collection):
self.columns = columns
self.collection = collection
# values specified by the datatable for filtering, sorting, paging
self.request_values = request.values
# results from the db
self.result_data = None
# total in the table after filtering
self.cardinality_filtered = 0
# total in the table unfiltered
self.cadinality = 0
self.run_queries()
评论列表
文章目录