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'm opening this issue to ask if this if statement is required, since if you remove it you will enable all fields to be filtered upon as long as you define the DEFAULT_BACKEND_FILTER in your settings.py.
From what I've read on the docs, this should be the default behaviour, but it doesn't work on GenericAPIViews, because if I don't define some fieldset_fields on the view it won't generate a filterset class since the condition above will fail.
I'm opening this issue to ask if this if statement is required, since if you remove it you will enable all fields to be filtered upon as long as you define the DEFAULT_BACKEND_FILTER in your settings.py.
django-url-filter/url_filter/integrations/drf.py
Lines 93 to 104 in 1585da8
From what I've read on the docs, this should be the default behaviour, but it doesn't work on GenericAPIViews, because if I don't define some
fieldset_fields
on the view it won't generate a filterset class since the condition above will fail.For context, this is my view:
and these are my settings:
By default is doesn't filter by any field, but if I remove only the if statement (line 93) it works fine.
So am I setting something wrong, or is this an actual bug?
The text was updated successfully, but these errors were encountered: