Skip to content

Commit 8b0c247

Browse files
committed
Fix unit test.
1 parent 75b5ceb commit 8b0c247

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

django_mongodb_backend/query_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def is_constant_value(value):
7676
# This should be remove when the same thing above.
7777
if hasattr(value, "get_source_expressions"):
7878
simple_sub_expressions = all(map(is_constant_value, value.get_source_expressions()))
79+
else:
80+
simple_sub_expressions = True
7981
return (
8082
simple_sub_expressions
8183
and isinstance(value, Value)

0 commit comments

Comments
 (0)