diff --git a/django_mongodb/features.py b/django_mongodb/features.py index 1c85301ac..47ebaa1ba 100644 --- a/django_mongodb/features.py +++ b/django_mongodb/features.py @@ -100,9 +100,6 @@ class DatabaseFeatures(BaseDatabaseFeatures): "ordering.tests.OrderingTests.test_order_by_grandparent_fk_with_expression_in_default_ordering", "ordering.tests.OrderingTests.test_order_by_parent_fk_with_expression_in_default_ordering", "ordering.tests.OrderingTests.test_order_by_ptr_field_with_default_ordering_by_expression", - # pymongo.errors.OperationFailure: $multiply only supports numeric - # types, not date. (should be wrapped in DatabaseError). - "expressions.tests.FTimeDeltaTests.test_invalid_operator", # alias().order_by() doesn't work. "annotations.tests.AliasTests.test_order_by_alias", # annotate() + values_list() + order_by() loses annotated value. diff --git a/django_mongodb/query.py b/django_mongodb/query.py index 9879e878a..0f606625a 100644 --- a/django_mongodb/query.py +++ b/django_mongodb/query.py @@ -91,6 +91,7 @@ def delete(self): options = self.connection.operation_flags.get("delete", {}) return self.collection.delete_many(self.mongo_query, **options).deleted_count + @wrap_database_errors def get_cursor(self): if self.query.low_mark == self.query.high_mark: return []