Skip to content

Commit 06273e4

Browse files
committed
Refactor: Remove exception handling for queries involving joins.
1 parent 6fe6105 commit 06273e4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

django_mongodb/compiler.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ def check_query(self):
134134
raise NotSupportedError("QuerySet.distinct() is not supported on MongoDB.")
135135
if self.query.extra:
136136
raise NotSupportedError("QuerySet.extra() is not supported on MongoDB.")
137-
if self.query.select_related:
138-
pass
139-
# raise NotSupportedError("QuerySet.select_related() is not supported on MongoDB.")
140-
if len([a for a in self.query.alias_map if self.query.alias_refcount[a]]) > 1:
141-
pass
142-
# raise NotSupportedError("Queries with multiple tables are not supported on MongoDB.")
143137
if any(
144138
isinstance(a, Aggregate) and not isinstance(a, Count)
145139
for a in self.query.annotations.values()

0 commit comments

Comments
 (0)