umutbozkurt / django-rest-framework-mongoengine

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

int() argument must be a string or a number, not 'ObjectId' #253

Open daffodilistic opened 6 years ago

daffodilistic commented 6 years ago

Hi all,

I'm not sure if this issue is related to this package, but I'll raise it up here as a reference.

I'm having an issue with using this package. After creating a superuser, and when I try to login to the admin page via http://localhost:8000/admin, an error int() argument must be a string or a number, not 'ObjectId' is shown.

Traceback: http://dpaste.com/2Q9CY7Y

requirements.text:

astroid==1.6.4
backports.functools-lru-cache==1.5
configparser==3.5.0
Django==1.11.13
django-filter==1.1.0
django-rest-framework-mongoengine==3.3.1
djangorestframework==3.8.2
enum34==1.1.6
futures==3.2.0
isort==4.3.4
lazy-object-proxy==1.3.1
Markdown==2.6.11
mccabe==0.6.1
mongoengine==0.15.0
pylint==1.9.1
pymongo==3.6.1
pytz==2018.4
singledispatch==3.4.0.3
six==1.11.0
wrapt==1.10.11