You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> queryset.filter(**self._make_query_filter(request, validated_data)).query.__str__()
'SELECT "orders_order"."id" ..... WHERE ("orders_order"."status" = 1 AND "orders_order"."date" >= 2024-10-24 AND "orders_order"."date" <= 2024-10-25) ORDER BY "orders_order"."id" DESC'
And it is an obvious error.
Expected: "date >= 2024-10-24 AND date" <= 2024-10-24"
Got: "date >= 2024-10-24 AND date <= 2024-10-25"
I use DateRangeFilter with DateField.
When _make_query_filter is executed all seems fine. For example I filter by date 2024-10-24.
But then I looked at SQL query:
And it is an obvious error.
Expected: "date >= 2024-10-24 AND date" <= 2024-10-24"
Got: "date >= 2024-10-24 AND date <= 2024-10-25"
Package versions:
django-admin-rangefilter==0.13.2
django==5.0.9
The text was updated successfully, but these errors were encountered: