Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'TopLevelDocumentMetaclass' object is not iterable #262

Open
rinkita22 opened this issue Oct 23, 2018 · 4 comments
Open

TypeError: 'TopLevelDocumentMetaclass' object is not iterable #262

rinkita22 opened this issue Oct 23, 2018 · 4 comments

Comments

@rinkita22
Copy link

I am using Django 2.1.1 with mongoengine and django-rest-framework-mongoengine but I am getting error
"File "/python3.6/site-packages/django/contrib/admin/sites.py", line 102, in register
for model in model_or_iterable:
TypeError: 'TopLevelDocumentMetaclass' object is not iterable"

@BurkovBA
Copy link
Collaborator

BurkovBA commented Oct 25, 2018 via email

@GuidoRobertone
Copy link

Hi,

@rinkita22 Have you found any solution?

Thanks

@BurkovBA
Copy link
Collaborator

Guys, I'm sorry, I'm totally out of time for maintaining this project. If you have any suggestions, I'll gladly accept pull requests.

@uoxiu
Copy link
Collaborator

uoxiu commented Jun 18, 2019

@rinkita22 You want to register MongoEngine Document in django admin? DRF ME don't support this, you can use djongo, but it is an emulation of communication with sql to mongo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants