-
Hi folks, I stumbled across the following line and i'am not sure if this is the right way to figure out the Should this better rewrite to: get_serializer_func = getattr(view, "get_serializer_class", None)
if get_serializer_func:
serializer_class = get_serializer_func()
else:
serializer_class = None |
Beta Was this translation helpful? Give feedback.
Answered by
sliverc
Nov 25, 2021
Replies: 1 comment
-
This code bit was an invalid bug fix to allow the usage of the field name |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jokiefer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code bit was an invalid bug fix to allow the usage of the field name
type
again. The JSON:API spec does not allow this though so this code block will be removed in next major version (see TODO). See #993 for more details.