-
Notifications
You must be signed in to change notification settings - Fork 300
AttributeError in ApiView get() introduced in release 3.2.0 #821
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
Comments
As I interpret it the former error masked another error in the DJA code base in the Anyhow it is good practice to define a |
Hi @sliverc thanks for your quick answer! Sorry, I don't yet understand how to add My understanding of the role of A couple of endpoints are crashing since the 3.2.0 update. If there is a breaking change in the library, it would be good if the change logs were extended to cover this. |
I got mislead by your I think I now see what happens and why this worked with 3.1.0 but not anymore with 3.2.0. In this change a So before your APIView serializers were actually derived from In your case though you don't want a JSON API spec end point but a simple APIView endpoint. In that case your serializers should actually be derived from I agree though this was overlooked that introducing this serializer class could lead to issues. I will update the changelog accordingly. Does this explain and work for you? |
Using |
Clarify potential issue in changelog through introduction of `rest_framework_json_api.serializers.Serializer` class.
I get a crash in this code snippet, which works in version 3.1.0:
The partial stack trace is
I run into the same error on a POST request in a different area.
Looking at the changelog and commits between 3.1.0 and 3.2.0 and suspect this commit could be related:
ff0f93a
Is this an error in the library?
Am I doing something wrong, which used to be masked before?
The text was updated successfully, but these errors were encountered: