MongoEngine/mongoengine — pull request #677 by KonishchevDmitry (2014-06-26 10:32:48+00:00)
Title: QuerySet.modify() method to provide find_and_modify() like behaviour

Adds a new `QuerySet` method to provide `find_and_modify()` like behaviour as requested in #408. Unlike #421 provides all pymongo's `find_and_modify()` features like `new=True` and `remove=True` and supports MongoEngine's `.only()` and `.order_by()` modifiers.