Skip to content

Commit

Permalink
refactor(Price tags): allow filter by created gte & lte. ref #656
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jan 6, 2025
1 parent ebfe943 commit d26e39c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions open_prices/api/proofs/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ class PriceTagFilter(django_filters.FilterSet):
status__isnull = django_filters.BooleanFilter(
field_name="status", lookup_expr="isnull"
)
created__gte = django_filters.DateTimeFilter(
field_name="created", lookup_expr="gte"
)
created__lte = django_filters.DateTimeFilter(
field_name="created", lookup_expr="lte"
)

class Meta:
model = PriceTag
Expand Down

0 comments on commit d26e39c

Please sign in to comment.