Skip to content

Commit b593b05

Browse files
committed
Rename order_by.
1 parent 5cbdde5 commit b593b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_mongodb/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def join(self, compiler, connection):
169169
return lookup_pipeline
170170

171171

172-
def orderby(self, compiler, connection):
172+
def order_by(self, compiler, connection):
173173
return self.expression.as_mql(compiler, connection)
174174

175175

@@ -238,5 +238,5 @@ def where_node(self, compiler, connection):
238238
def register_nodes():
239239
Join.as_mql = join
240240
NothingNode.as_mql = NothingNode.as_sql
241-
OrderBy.as_mql = orderby
241+
OrderBy.as_mql = order_by
242242
WhereNode.as_mql = where_node

0 commit comments

Comments
 (0)