Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix(filters): use BooleanFilter instead of NumberFilter for isnull lo…
Browse files Browse the repository at this point in the history
…okup
  • Loading branch information
c0rydoras committed Apr 15, 2024
1 parent 1adf804 commit 6dbc90a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion timed/tracking/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from django_filters.constants import EMPTY_VALUES
from django_filters.rest_framework import (
BaseInFilter,
BooleanFilter,
DateFilter,
Filter,
FilterSet,
Expand Down Expand Up @@ -90,7 +91,7 @@ class ReportFilterSet(FilterSet):
editable = NumberFilter(method="filter_editable")
not_billable = NumberFilter(field_name="not_billable")
billed = NumberFilter(field_name="billed")
verified = NumberFilter(
verified = BooleanFilter(
field_name="verified_by_id", lookup_expr="isnull", exclude=True
)
reviewer = NumberFilter(method="filter_has_reviewer")
Expand Down

0 comments on commit 6dbc90a

Please sign in to comment.