hmarr/mongoengine — pull request #451 by heyman (2012-03-02 19:30:00+00:00)
Title: Made QuerySet select all declared fields, instead of all fields by default 

Made the QuerySet._loaded_fields attribute default to a QueryFieldList with the document's all fields selected.

This fixes a bug that occurs when you have a field in the database, that is *not* declared as a field in the MongoEngine document, when the document has a property function with the same name.

This is quite a common use case when doing refactoring and your dataset is too large to run an $unset update query on.

All the tests passes, and a test is supplied for the described bug. I hope you think this is good :), but since you know the codebase best please tell me if it should be done in some other way.