We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c116e commit 50a2a27Copy full SHA for 50a2a27
django_mongodb/compiler.py
@@ -17,7 +17,6 @@
17
from django.utils.functional import cached_property
18
from pymongo import ASCENDING, DESCENDING
19
20
-from .base import Cursor
21
from .query import MongoQuery, wrap_database_errors
22
23
@@ -692,9 +691,7 @@ def collection_name(self):
692
691
693
class SQLDeleteCompiler(compiler.SQLDeleteCompiler, SQLCompiler):
694
def execute_sql(self, result_type=MULTI):
695
- cursor = Cursor()
696
- cursor.rowcount = self.build_query().delete()
697
- return cursor
+ return self.build_query().delete()
698
699
def check_query(self):
700
super().check_query()
0 commit comments