-
Notifications
You must be signed in to change notification settings - Fork 260
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 filter spanning foreign key relationships results in FieldDoesNotExist error #150
Comments
tfranzel
added a commit
that referenced
this issue
Sep 19, 2020
tfranzel
added a commit
that referenced
this issue
Sep 19, 2020
Merged
@sennierer i tried to pull the improvement discussed in #151 into the core and reuse them for |
Yes, thats working! Thanks for fixing it! |
my pleasure! thanks again for raising the issue and helping to find a good working fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using django-filter and adding filters similar to
{'FKfield__FKprop': ['exact', 'icontains'}}
to the Meta class of a GenericViewset drf-spectacular throws anMODEL has no field named FKfield__FKprop
errorExpected behavior
Fields and properties should be splitted similar as django-filter does to follow the FKs to the field that is filtered on
The text was updated successfully, but these errors were encountered: