Added a __raw__ parameter for passing query dictionaries directly to pymongo
This commit is contained in:
parent
198ccc028a
commit
809fe44b43
1 changed files with 5 additions and 0 deletions
|
|
@ -318,6 +318,11 @@ class QuerySet(object):
|
||||||
|
|
||||||
mongo_query = {}
|
mongo_query = {}
|
||||||
for key, value in query.items():
|
for key, value in query.items():
|
||||||
|
|
||||||
|
if key == "__raw__":
|
||||||
|
mongo_query.update(value)
|
||||||
|
return mongo_query
|
||||||
|
|
||||||
parts = key.split('__')
|
parts = key.split('__')
|
||||||
# Check for an operator and transform to mongo-style if there is
|
# Check for an operator and transform to mongo-style if there is
|
||||||
op = None
|
op = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue