fix error in #2085 commit 3ca886ac7ad5: value may be a tuple
This commit is contained in:
parent
b65918d616
commit
70047c367a
|
@ -126,7 +126,7 @@ class FilterManager(component.Component):
|
||||||
|
|
||||||
#sanitize input: filter-value must be a list of strings
|
#sanitize input: filter-value must be a list of strings
|
||||||
for key, value in filter_dict.items():
|
for key, value in filter_dict.items():
|
||||||
if not isinstance(value, list):
|
if isinstance(value, basestring):
|
||||||
filter_dict[key] = [value]
|
filter_dict[key] = [value]
|
||||||
|
|
||||||
if "id" in filter_dict: #optimized filter for id:
|
if "id" in filter_dict: #optimized filter for id:
|
||||||
|
|
Loading…
Reference in New Issue