@@ -42,12 +42,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
42
42
# tuple index out of range in process_rhs()
43
43
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one" ,
44
44
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one_offset" ,
45
- # Regex lookup doesn't work on non-string fields.
46
- "lookup.tests.LookupTests.test_regex_non_string" ,
47
45
# Substr not implemented.
48
46
"lookup.tests.LookupTests.test_pattern_lookups_with_substr" ,
49
- # Querying ObjectID with string doesn't work.
50
- "lookup.tests.LookupTests.test_lookup_int_as_str" ,
47
+ # Regex lookup doesn't work on json fields.
51
48
"model_fields.test_jsonfield.TestQuerying.test_icontains" ,
52
49
# MongoDB gives the wrong result of log(number, base) when base is a
53
50
# fractional Decimal: https://jira.mongodb.org/browse/SERVER-91223
@@ -259,7 +256,6 @@ def django_test_expected_failures(self):
259
256
"db_functions.datetime.test_extract_trunc.DateFunctionTests.test_extract_year_exact_lookup" ,
260
257
# FieldDoesNotExist with ordering.
261
258
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count" ,
262
- "model_fields.test_jsonfield.TestQuerying.test_obj_subquery_lookup" ,
263
259
},
264
260
"Count doesn't work in QuerySet.annotate()" : {
265
261
"annotations.tests.AliasTests.test_alias_annotate_with_aggregation" ,
@@ -432,3 +428,7 @@ def django_test_expected_failures(self):
432
428
"model_fields.test_jsonfield.TestQuerying.test_none_key_exclude" ,
433
429
},
434
430
}
431
+
432
+ @cached_property
433
+ def is_mongodb_6_3 (self ):
434
+ return self .connection .get_database_version () >= (6 , 3 )
0 commit comments