umutbozkurt / django-rest-framework-mongoengine

Mongoengine support for Django Rest Framework
MIT License
616 stars 167 forks source link

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

Open vijesh-venugopal opened 4 years ago

vijesh-venugopal commented 4 years ago

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