How to create a filter with a field that does not exist in the model #1576
Unanswered
toshiki-kohno
asked this question in
Q&A
Replies: 1 comment
-
I had the same problem today. "GET /app/users/?search_for=username"
works for me. So please try:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to create a filter with a field that does not exist in the model
I was creating a filter with a field "deletion" that does not exist in the User model.
This was working in django-filter 1.1.0,
In the latest version, I get the following error
'Meta.fields' must not contain non-model field names: deletion
How can I create a field that does not exist in the model?
Beta Was this translation helpful? Give feedback.
All reactions