Skip to content

Commit

Permalink
update for cursor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Dec 19, 2024
1 parent 89c116e commit 50a2a27
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions django_mongodb/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from django.utils.functional import cached_property
from pymongo import ASCENDING, DESCENDING

from .base import Cursor
from .query import MongoQuery, wrap_database_errors


Expand Down Expand Up @@ -692,9 +691,7 @@ def collection_name(self):

class SQLDeleteCompiler(compiler.SQLDeleteCompiler, SQLCompiler):
def execute_sql(self, result_type=MULTI):
cursor = Cursor()
cursor.rowcount = self.build_query().delete()
return cursor
return self.build_query().delete()

def check_query(self):
super().check_query()
Expand Down

0 comments on commit 50a2a27

Please sign in to comment.