Skip to content

Commit 310ab85

Browse files
committed
fix
1 parent 4041517 commit 310ab85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_mongodb_backend/expressions/builtins.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def register_expressions():
247247
NegatedExpression.as_mql_expr = negated_expression
248248
OrderBy.as_mql_expr = partialmethod(order_by, as_expr=True)
249249
OrderBy.as_mql_path = partialmethod(order_by, as_expr=False)
250+
OrderBy.can_use_path = True
250251
Query.as_mql = query
251252
RawSQL.as_mql = raw_sql
252253
Ref.as_mql = ref

0 commit comments

Comments
 (0)