Skip to content

Commit 50a2a27

Browse files
committed
update for cursor refactor
1 parent 89c116e commit 50a2a27

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

django_mongodb/compiler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from django.utils.functional import cached_property
1818
from pymongo import ASCENDING, DESCENDING
1919

20-
from .base import Cursor
2120
from .query import MongoQuery, wrap_database_errors
2221

2322

@@ -692,9 +691,7 @@ def collection_name(self):
692691

693692
class SQLDeleteCompiler(compiler.SQLDeleteCompiler, SQLCompiler):
694693
def execute_sql(self, result_type=MULTI):
695-
cursor = Cursor()
696-
cursor.rowcount = self.build_query().delete()
697-
return cursor
694+
return self.build_query().delete()
698695

699696
def check_query(self):
700697
super().check_query()

0 commit comments

Comments
 (0)