Search or filter over annotated fields #8171
Unanswered
efe
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm getting an error after adding annotated field to the
search_fields
orordering_fields
. Is there a way to workaround this?Here is the setup:
rest_framework.filters.SearchFilter
andrest_framework.filters.OrderingFilter
are configured asDEFAULT_FILTER_BACKENDS
insettings.py
.The error I got:
Beta Was this translation helpful? Give feedback.
All reactions