I’m having trouble getting MongoEngine to accept specific IDs. It seems absolutely determined to use (and only use) ObjectIds. I’m more than able to generate my own IDs in this instance, thanks.
How can I get MongoEngine to play nice?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I managed to solve this by adding the following to the class:
Not sure if this is the “proper” way of doing things, so ill leave this unanswered for a bit.