Add MasterView.use_byte_string_filters
flag for encoding search values
This commit is contained in:
parent
54bfafdbfe
commit
ccdf821583
3 changed files with 30 additions and 12 deletions
|
@ -67,6 +67,9 @@ class MasterView(View):
|
|||
pageable = True
|
||||
checkboxes = False
|
||||
|
||||
# set to True in order to encode search values as utf-8
|
||||
use_byte_string_filters = False
|
||||
|
||||
listable = True
|
||||
sortable = True
|
||||
results_downloadable_csv = False
|
||||
|
@ -276,6 +279,7 @@ class MasterView(View):
|
|||
'model_class': getattr(self, 'model_class', None),
|
||||
'width': 'full',
|
||||
'filterable': self.filterable,
|
||||
'use_byte_string_filters': self.use_byte_string_filters,
|
||||
'sortable': self.sortable,
|
||||
'pageable': self.pageable,
|
||||
'extra_row_class': self.grid_extra_class,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue