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
I have a django FilterSet in a view that filters a date with DateFromToRangeFilter.
date_before=yyyy-mm-dd works fine but
filter[date_before]=yyyy-mm-dd
rises a:
ValidationError
rest_framework.exceptions.ValidationError: [ErrorDetail(string='invalid filter[date_before]', code='invalid')]
Checklist
Certain that this is a bug (if unsure or you have a question use discussions instead)
Code snippet or unit test added to reproduce bug
class XXXXFilter(FilterSet):
date = DateFromToRangeFilter(field_name='date')
class Meta:
model = XXXXX
fields = ()
The text was updated successfully, but these errors were encountered:
Thanks for reporting. This is I feel a duplicate of #938 Closing this issue, therefore. If there are additional comments to this issue, feel free to add comments to the respective issue.
Description of the Bug Report
I have a django FilterSet in a view that filters a date with DateFromToRangeFilter.
date_before=yyyy-mm-dd works fine but
filter[date_before]=yyyy-mm-dd
rises a:
ValidationError
rest_framework.exceptions.ValidationError: [ErrorDetail(string='invalid filter[date_before]', code='invalid')]
Checklist
class XXXXFilter(FilterSet):
date = DateFromToRangeFilter(field_name='date')
The text was updated successfully, but these errors were encountered: