-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CallableFilter.lookups with only custom_lookups #78
Comments
django-url-filter/url_filter/filters.py Lines 479 to 496 in 0568281
sounds like a bug. dont remember if there was any reason for returning all lookups for |
Maybe for fields that need some lookups created or overloaded? I'm not sure it's a bug, maybe we should just automatically detect the field Thanks for your quick reply! |
Hi,
for a project that use drf-yasg, i use CallableFilter for model properties that returns queryset.
But when doc was generated with drf-yasg, many lookups were generated when I didn't create them.
For now, I override the lookups method like this:
Would there be a possibility to choose that this method only returns the custom lookups?
A parameter
custom_lookups_only=False
in the__init__
ofCallableFilter
for example?The text was updated successfully, but these errors were encountered: