Added a __raw__ parameter for passing query dictionaries directly to pymongo

This commit is contained in:
Greg Turner 2010-08-12 15:14:20 +10:00
parent 198ccc028a
commit 809fe44b43

View File

@ -318,6 +318,11 @@ class QuerySet(object):
mongo_query = {}
for key, value in query.items():
if key == "__raw__":
mongo_query.update(value)
return mongo_query
parts = key.split('__')
# Check for an operator and transform to mongo-style if there is
op = None