We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe3026b commit e3478deCopy full SHA for e3478de
tortoise/filters.py
@@ -464,7 +464,7 @@ def get_array_filter(
464
def get_filters_for_field(
465
field_name: str, field: Optional[Field], source_field: str
466
) -> dict[str, FilterInfoDict]:
467
- if field:
+ if field is not None:
468
if isinstance(field, ManyToManyFieldInstance):
469
return get_m2m_filters(field_name, field)
470
if isinstance(field, BackwardFKRelation):
0 commit comments