jschrewe / django-mongoadmin

Integrates mongodb into django's admin
http://www.schafproductions.com/projects/mongo-admin/
BSD 3-Clause "New" or "Revised" License
112 stars 38 forks source link

TypeError at /admin/ #13

Closed burakkilic closed 11 years ago

burakkilic commented 11 years ago

I am getting

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

What is wrong?

hellysmile commented 11 years ago

try at your document something like

def __str__(self):
    return str(self.id)

def __unicode__(self):
    return unicode(self.__str__())

and dont use list_display and use mongoengine 0.7- with pymongo 2.0-

jschrewe commented 11 years ago

Fixed I guess. Otherwise reopen it.