-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Horizontal fieldset breaks in admin and api browser when read_only is False for nested serializers #3704
Comments
@mcastle do you have a code sample we could use to reproduce the issue ? |
how it resolve the error? i have the same problem and in my case we will try to list a one "comment" from a list of comment. The model have ManyToManyField called comments. And the serializer of comment have the attribute many=True. Why append this? |
i forgot, the Traceback is exactly the same. |
the serializres inside the classes that use is: comments = CommentSerializer(many=True, read_only=True) |
Fixed by #4473. |
Thanks for the update @mcastle! |
For sure! |
There's no error for json. And this doesn't happen for every serializer with a nested serializer - it seems to occur only when the nested serializer itself has a nested serializer. This is using django rest framework version 3.3.1. Here's the traceback:
The text was updated successfully, but these errors were encountered: