Skip to content

Commit e62e299

Browse files
committed
fixed case where already nested fields (without getField) would not get converted
1 parent a88fbe7 commit e62e299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_mongodb_backend/query_conversion/expression_converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def is_simple_field_name(cls, field_name):
1111
isinstance(field_name, str)
1212
and field_name != ""
1313
and field_name.startswith("$")
14-
# Special case for _ separated field names
15-
and field_name[1:].replace("_", "").isalnum()
14+
# Case for catching variables
15+
and not field_name.startswith("$$")
1616
)
1717

1818
@classmethod

0 commit comments

Comments
 (0)