-
Notifications
You must be signed in to change notification settings - Fork 271
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
Django Filters Extension is unable to handle filter fields with a function method kwarg #290
Comments
The docs fail to build when using
The filters still work correctly. |
sounds weird, those are the batteries! a with doc you mean schema generation, right? |
According to this post partial objects are not functions. Maybe it could try to get the type hints and fall back to something else if that fails? |
that should do it. i hope that was the last line that could produce uncaught exceptions in django-filters. |
closing this issue for now. feel free to comment if anything is missing or not working and we will follow-up. |
Describe the bug
Spectacular errors when on the second example from these
django-filter
docsThe
method
argument is allowed to be a function anddrf-spectacular
assumes it is a string, raising this errorTo Reproduce
Follow example in docs above
Expected behavior
I expect it to not error here, and be able to handle this valid filter
The text was updated successfully, but these errors were encountered: