MongoEngine/mongoengine — pull request #165 by yakxxx (2012-11-13 12:09:19+00:00)
Title: ReferenceField to_mongo DBRef bug

When ReferenceField is DBRef and self.dbref == False to_mongo returns function reference instead of ObjectID