Exemplo n.º 1
0
 def filter_set(cls):
     fs = FilterSet(before = DateFilter(),
                      after = DateFilter(),
                      to = DateFilter(),
                      branch_id = NumberFilter(),
                      ) 
     fs["from"] = DateFilter()
     return fs
Exemplo n.º 2
0
 def filters(self):
     try:
         return self._klass.filter_set()
     except:
         return FilterSet()