-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
'RelatedManager' object is not iterable #8726
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
Labels
Comments
954-Ivory
added a commit
to 954-Ivory/django-rest-framework
that referenced
this issue
Oct 24, 2022
good catch, lets continue on the PR |
auvipy
added a commit
that referenced
this issue
Nov 22, 2022
* Fixes 'RelatedManager' object is not iterable in ListSerializer.to_representation.(#8726) * Change to only BaseManager * Commit unit test * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Update tests/test_serializer_lists.py * Format import * Format import Co-authored-by: Asif Saif Uddin <[email protected]>
thanks a lot for your contribution |
I should thank you more to the teach and help 😀 |
and thank you for collaborating :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These days, I create a custom manager repr for django:
https://github.com/954-Ivory/django_bulk_hook_manager
But I get the error when I use it with DRF:
So, I check it, and found the reason.
Error line:
This line should change to:
We need to check whether
data
is aBaseManager
instance.I will PR later.
The text was updated successfully, but these errors were encountered: