[Solved]-'TopLevelDocumentMetaclass' object is not iterable

0👍

it seems like 'TopLevelDocumentMetaclass' object is not iterable. is raised by mongo-engine while it tries to register model in django.contrib.admin so basically mongo got a problem with Django admin.

it seems like registering model like this might help now:

admin.register(MyModel)

Leave a comment