-
-
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
Relation fields no to_fields attribute attribute break serializer #3634
Labels
Milestone
Comments
Seems sensible to me. |
@martinhill wan't to put a PR together with your proposed changes? |
be happy to! |
martinhill
pushed a commit
to martinhill/django-rest-framework
that referenced
this issue
Nov 14, 2015
This was referenced Mar 9, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have a ModelSerializer for the django-taggit package's Tag model. With DRF release 3.3.1 it began failing with
AttributeError: 'TaggableManager' object has no attribute 'to_fields'
.I believe this line from PR 3526 assumes all relation fields have a to_fields attribute, but taggit's TaggableManager is an example of one that doesn't.
Replacing it with
seems to solve the problem.
The text was updated successfully, but these errors were encountered: