Commit 73cd8762 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Romain Bignon

Allow for a default argument in MultiFilter

parent 3f2d8ae1
......@@ -451,8 +451,9 @@ class Duration(Time):
class MultiFilter(Filter):
def __init__(self, *args):
super(MultiFilter, self).__init__(args)
def __init__(self, *args, **kwargs):
default = kwargs.pop('default', _NO_DEFAULT)
super(MultiFilter, self).__init__(args, default)
def __call__(self, item):
values = [, item) for selector in self.selector]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment