You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: