umutbozkurt / django-rest-framework-mongoengine

Mongoengine support for Django Rest Framework
MIT License
616 stars 167 forks source link

TypeError: 'TopLevelDocumentMetaclass' object is not iterable #262

Open rinkita22 opened 5 years ago

rinkita22 commented 5 years ago

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 5 years ago

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 https://github.com/umutbozkurt/django-rest-framework-mongoengine/issues/262, or mute the thread https://github.com/notifications/unsubscribe-auth/AHQB3-fxMvCarvptH7Nep4bSAWB2yLOVks5unza3gaJpZM4X12Av .

GuidoRobertone commented 5 years ago

Hi,

@rinkita22 Have you found any solution?

Thanks

BurkovBA commented 5 years ago

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 5 years ago

@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