Skip to content

Commit 95c94e0

Browse files
committed
rename _helpers to query_utils.py
1 parent 78b291f commit 95c94e0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

django_mongodb/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
from pymongo.mongo_client import MongoClient
88

99
from . import dbapi as Database
10-
from ._helpers import safe_regex
1110
from .client import DatabaseClient
1211
from .creation import DatabaseCreation
1312
from .features import DatabaseFeatures
1413
from .introspection import DatabaseIntrospection
1514
from .operations import DatabaseOperations
15+
from .query_utils import safe_regex
1616
from .schema import DatabaseSchemaEditor
1717

1818

django_mongodb/compiler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ def build_query(self, columns=None):
141141
except FullResultSet:
142142
query.mongo_query = {}
143143

144-
# query.add_filters(self.query.where)
145144
query.order_by(self._get_ordering())
146145

147146
# This at least satisfies the most basic unit tests.

django_mongodb/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.db import NotSupportedError
22
from django.db.models.functions.datetime import Extract
33

4-
from ._helpers import process_lhs
4+
from .query_utils import process_lhs
55

66

77
def extract(self, compiler, connection):

django_mongodb/lookups.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
)
1111
from django.db.models.sql.where import AND, XOR, WhereNode
1212

13-
from ._helpers import process_lhs, process_rhs, safe_regex
13+
from .query_utils import process_lhs, process_rhs, safe_regex
1414

1515

1616
def where_node(self, compiler, connection):
@@ -22,7 +22,8 @@ def where_node(self, compiler, connection):
2222
if self.connector == AND:
2323
operator = "$and"
2424
elif self.connector == XOR:
25-
raise NotImplementedError
25+
# https://github.com/mongodb-labs/django-mongodb/issues/27
26+
raise NotImplementedError("XOR is not yet supported.")
2627
else:
2728
operator = "$or"
2829

File renamed without changes.

0 commit comments

Comments
 (0)