Avoid error when filter params not valid
This commit is contained in:
parent
de13e48aa5
commit
ae38e09d1b
|
@ -271,7 +271,8 @@ class GridFilter(object):
|
||||||
value = self.get_value(value)
|
value = self.get_value(value)
|
||||||
filtr = getattr(self, 'filter_{0}'.format(verb), None)
|
filtr = getattr(self, 'filter_{0}'.format(verb), None)
|
||||||
if not filtr:
|
if not filtr:
|
||||||
raise ValueError("Unknown filter verb: {0}".format(repr(verb)))
|
log.warning("unknown filter verb: %s", verb)
|
||||||
|
return data
|
||||||
return filtr(data, value)
|
return filtr(data, value)
|
||||||
|
|
||||||
def get_value(self, value=UNSPECIFIED):
|
def get_value(self, value=UNSPECIFIED):
|
||||||
|
|
Loading…
Reference in a new issue