Skip to content

AttributeError: 'NoneType' object has no attribute '_type' #57

@mtech2008

Description

@mtech2008

I am receiving an error node = kv[1].get_type()._type._meta
AttributeError: 'NoneType' object has no attribute '_type'

when I am using "EmbeddedDocument(LatLang)"

class LatLng(EmbeddedDocument):
lat = FloatField()
lng = FloatField()

class User(Document):
email = StringField(required=True)
first_name = StringField(max_length=50)
last_name = StringField(max_length=50)
location = EmbeddedDocumentField(LatLng)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions