Skip to content

AttributeError when initializing embedded documents #681

@hannes-brt

Description

@hannes-brt

When I initialize an instance of an EmbeddedDocument subclass, I get an AttributeError for the non-existing attribute _auto_id_field.

It works fine when I comment out

        # If its an automatic id field then skip to the first defined field
        if self._auto_id_field:
            next(field)

in mongoengine.base.document.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions