[nonrel] Merge various changes from Alex Gaynor's query refactor GSoC
|Reported by:||jonash||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
(This patch is part of the changes made to the inofficial fork "Django-nonrel" which adds basic support for non-relational databases.)
These changes from Alex' GSoC apparently didn't make it into Django trunk.