Skip to content
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

Embedded Document field has no attribute items error in recursive_save #276

Open
vijesh-venugopal opened this issue Apr 22, 2020 · 0 comments

Comments

@vijesh-venugopal
Copy link

I'm also facing the same issue related to the EmbeddedDocumentSerializer and here the value for Embedded Document field is a model instance. It returns the error like:

code:
for key, value in validated_data.items():

AttributeError: 'Modelname' object has no attribute 'items'
Any suggestions please.

Package versions:
django == 3.0.4
djangorestframework == 3.11.0
mongoengine == 0.19.1
pymongo == 3.10.1
django-rest-framework-mongoengine == 3.4.1

@vijesh-venugopal vijesh-venugopal changed the title Embedded Document field has no attribute items in recursive_save Embedded Document field has no attribute items error in recursive_save Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant