filterset_class does not apply to patch action #1519
LeonardoFurtado
started this conversation in
General
Replies: 1 comment
-
According to django-rest-framework doc: https://www.django-rest-framework.org/api-guide/filtering/, the filter is only for list views. But you can still override |
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
-
I have a patch action like this:
my
request.data
also have an attribute namedbar
but myself.get_queryset().update(tipo_id=foo)
is not filtering by bar. I've tried to change de method of this action to get (methods=['get']
) and the filter have worked fine.Is this a bug ?
Beta Was this translation helpful? Give feedback.
All reactions