Add a couple of extra verbs to base grid filter class

Seems like these could be more useful some day; for now they're used by
a bespoke project.
This commit is contained in:
Lance Edgar 2016-09-19 16:33:24 -05:00
parent a77f41debf
commit 65d1c24230

View file

@ -128,9 +128,12 @@ class GridFilter(object):
'is_false': "is false", 'is_false': "is false",
'contains': "contains", 'contains': "contains",
'does_not_contain': "does not contain", 'does_not_contain': "does not contain",
'is_me': "is me",
'is_not_me': "is not me",
} }
valueless_verbs = ['is_any', 'is_null', 'is_not_null', 'is_true', 'is_false'] valueless_verbs = ['is_any', 'is_null', 'is_not_null', 'is_true', 'is_false',
'is_me', 'is_not_me']
value_renderer_factory = DefaultValueRenderer value_renderer_factory = DefaultValueRenderer