Skip to content

Commit 04d8c0f

Browse files
committed
minor addition on to of idoshr pr
1 parent ed9d2f7 commit 04d8c0f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Development
88
===========
99
- (Fill this out as you fix issues and develop your features).
1010
- Fix for uuidRepresentation not read when provided in URI #2741
11-
- Fix combination of __raw__ and mongoengine syntax.
11+
- Fix combination of __raw__ and mongoengine syntax #2773
1212
- Add tests against MongoDB 6.0 and MongoDB 7.0 in the pipeline
1313
- Fix validate() not being called when inheritance is used in EmbeddedDocument and validate is overriden #2784
1414
- Add support for readPreferenceTags in connection parameters #2644

mongoengine/queryset/transform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
)
6363

6464

65-
def handle_raw_query(value: dict, mongo_query: dict):
65+
def handle_raw_query(value, mongo_query):
66+
"""Combine a raw query with an existing one"""
6667
for op, v in value.items():
6768
if op not in mongo_query:
6869
mongo_query[op] = v

0 commit comments

Comments
 (0)