MongoEngine specifying an ID?

I managed to solve this by adding the following to the class.

I managed to solve this by adding the following to the class: id = mongoengine. StringField(required=True, primary_key=True) Not sure if this is the "proper" way of doing things, so ill leave this unanswered for a bit.

What was your problem. What did you add to fix it? How would someone besides you comprehend your problem?

Are you saying you didn't have any field acting as an id at all before and couldn't figure out why mongoengine wasn't allowing you to use an ad hoc id field? – Profane Aug 18 at 1:30 I could specify the id field even if it wasn't specified, but it wouldn't accept a string/unicode id, only ObjectId. – Noah McIlraith Sep 3 at 20:15.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions