MongoEngine/mongoengine — pull request #619 by polyrabbit (2014-04-01 12:09:57+00:00)
Title: Fixed incorrectly split a query key, when it ends with "_"

Say we have a string field called `from_`, and we use `Q(from___contains='blah')` to query against it. However mongoengine seems to interpret this query incorrectly as it use `__` to split field and operator, which leads to `from` and `_contains` which is certainly incorrect. I believe we should use `rsplit` to split field and operator since operators are always in the right hand side.