-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
TypeError: Object of type _TaggableManager is not JSON serializable #839
Comments
@mirodil1 do you have a full stack trace for these errors? this is not enough information for us to figure things out. |
@rtpg no atm, I guess the problem was with |
Hi, I came across this issue as I got the same error when using tags with I added the following to my existing factory class, as suggested in your docs:
Then when I ran my tests, I got the following stack trace, in case that helps you figure out the problem:
|
the solution for this issue in django-taggit is to import the built in TagListSerializerField from the django-taggit itself.
|
I am using
django-taggit
,django-parler
,django-parler-rest
anddjango-rest-framework
on my project and getting following errors when trying to get or add object.ValueError: language_code can't be null, use translation.activate(..) when accessing translated models outside the request/response loop.
TypeError: Object of type _TaggableManager is not JSON serializable
models.py
serializer.py
The text was updated successfully, but these errors were encountered: