diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/querysetfilter.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/querysetfilter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/querysetfilter.py b/bitbake/lib/toaster/toastergui/querysetfilter.py index dbae239370..efa8507050 100644 --- a/bitbake/lib/toaster/toastergui/querysetfilter.py +++ b/bitbake/lib/toaster/toastergui/querysetfilter.py | |||
@@ -2,10 +2,11 @@ class QuerysetFilter(object): | |||
2 | """ Filter for a queryset """ | 2 | """ Filter for a queryset """ |
3 | 3 | ||
4 | def __init__(self, criteria=None): | 4 | def __init__(self, criteria=None): |
5 | self.criteria = None | ||
5 | if criteria: | 6 | if criteria: |
6 | self.set_criteria(criteria) | 7 | self.set_criteria(criteria) |
7 | 8 | ||
8 | def set_criteria(self, criteria = None): | 9 | def set_criteria(self, criteria): |
9 | """ | 10 | """ |
10 | criteria is an instance of django.db.models.Q; | 11 | criteria is an instance of django.db.models.Q; |
11 | see https://docs.djangoproject.com/en/1.9/ref/models/querysets/#q-objects | 12 | see https://docs.djangoproject.com/en/1.9/ref/models/querysets/#q-objects |