Is it possible to create a custom ObjectId in a django model that is being saved to a mongodb using mongodb-engine? I've tried to do this passing the string I want into the ObjectId type, Flight(_id=ObjectId(myid)) for example but then this gives me an error saying that the string is not a valid id. Is it possible to override the id with a custom one? And is there somewhere where I can read about this or what the rules for creating an ID are?
example:
File "/usr/local/lib/python2.7/dist-packages/bson/objectid.py", line 172, in __validate raise InvalidId("%s is not a valid ObjectId" % oid) InvalidId: short_profile_4fcad5e8e5095f5a4f000000 is not a valid ObjectId