From: Tomas Babej Date: Sat, 8 Aug 2015 22:51:18 +0000 (+0200) Subject: TaskQuerySet: Do not hardcode TaskWarriorFilter X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/e9ac4a95bfab8a3e323e15f5f26a6302a87384a3 TaskQuerySet: Do not hardcode TaskWarriorFilter --- diff --git a/tasklib/task.py b/tasklib/task.py index 2b5ca69..e343583 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -427,7 +427,7 @@ class TaskQuerySet(object): def __init__(self, warrior=None, filter_obj=None): self.warrior = warrior self._result_cache = None - self.filter_obj = filter_obj or TaskWarriorFilter(warrior) + self.filter_obj = filter_obj or self.warrior.filter_class(warrior) def __deepcopy__(self, memo): """