From 65d1c24230404aa6144b35d74887bd794608b1ba Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 19 Sep 2016 16:33:24 -0500 Subject: [PATCH] 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. --- tailbone/newgrids/filters.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tailbone/newgrids/filters.py b/tailbone/newgrids/filters.py index b952e8a0..cee4fc02 100644 --- a/tailbone/newgrids/filters.py +++ b/tailbone/newgrids/filters.py @@ -128,9 +128,12 @@ class GridFilter(object): 'is_false': "is false", 'contains': "contains", '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