Skip to content

Conversation

@justingiorgi
Copy link

Setting reference field to an object id by attribute was failing validation but setting when initializing the document functioned. I allowed ObjectId to pass validation. to_python already works with ObjectId with or without the dbref flag and all tests pass with this change.

This corrects issue #902.

Review on Reviewable

to_python already works with ObjectId with or without the dbref flag.
@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling f20ecc7 on justingiorgi:master into 7d1ba46 on MongoEngine:master.

@MRigal
Copy link
Member

MRigal commented Apr 29, 2015

ping @justingiorgi

@landscape-bot
Copy link

Code Health
Repository health decreased by 0.39% when pulling f20ecc7 on justingiorgi:master into 7f442f7 on MongoEngine:master.

@MRigal MRigal modified the milestone: 0.10.1 Jun 23, 2015
@justingiorgi
Copy link
Author

I'll add a couple test cases for this and update the pull request.

@wojcikstefan
Copy link
Member

Superseded by #1195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants