Embedded Document field has no attribute items error in recursive_save
vijesh-venugopal opened this issue · 0 comments
vijesh-venugopal commented
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