TypeError: 'TopLevelDocumentMetaclass' object is not iterable
rinkita22 opened this issue · 4 comments
rinkita22 commented
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 commented
Hi,
Unfortunately, I haven't tested DRF-ME with Django 2. Unfortunately, I'm
really out of time for this package maintenance. Maybe, I'll try updating
the dependencies on Christmas holidays, but please don't take it as a
promise.
By the way, if you're willing to contribute to updating the deps, your help
is more than wellcome.
Good luck,
Boris.
вт, 23 окт. 2018 г. в 16:33, rinkita22 <notifications@github.com>:
… 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"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#262>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHQB3-fxMvCarvptH7Nep4bSAWB2yLOVks5unza3gaJpZM4X12Av>
.
GuidoRobertone commented
BurkovBA commented
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 commented
@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