Skip to content

Commit

Permalink
Add func to init FilterSet
Browse files Browse the repository at this point in the history
  • Loading branch information
uriyyo committed Sep 5, 2023
1 parent 0cc96a1 commit d1b50e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fastapi_filters/filter_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ def __post_init__(self) -> None:
if getattr(self, key) is None:
setattr(self, key, {})

self.init_filter_set()

def init_filter_set(self) -> None:
pass

@classmethod
def from_ops(cls, *ops: FilterOp[Any]) -> Self:
values: FilterValues = {k: {} for k in cls.__filters__}
Expand Down

0 comments on commit d1b50e9

Please sign in to comment.