Skip to content

properly save nillable EmbeddedDocumentListField #250

@MiltosD

Description

@MiltosD

Is there a way to make a EmbeddedDocumentListField nillable, in order to avoid creating empty lists in MongoDB? Currently, I use

some_field = EmbeddedDocumentListField(EmbeddedDoc, null=True)

When I try to set some_field: null, i get

'NoneType' object is not iterable
at rest_framework_mongoengine\serializers.py in recursive_save, line 238

Any help is very much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions