def __new__(cls, column_name, mData=None, search_like=True,
filter=str, searchable=True, filterarg='cell',
nulls_order=None):
"""Set default values for mData and filter.
On creation, sets default None values for mData and string value for
filter (cause: Object representation is not JSON serializable).
"""
# check if allowed value
if nulls_order and nulls_order not in ['nullsfirst', 'nullslast']:
raise ValueError('`%s` is not an allowed value for nulls_order.'
% nulls_order)
return super(ColumnDT, cls).__new__(
cls, column_name, mData, search_like, filter, searchable,
filterarg, nulls_order)
评论列表
文章目录