MongoEngine/mongoengine — pull request #261 by paulswartz (2013-03-27 18:54:52+00:00)
Title: explicitly check for Document instances when dereferencing

In particular, `collections.namedtuple` instances also have a `_fields`
attribute which confuses the dereferencing.