@@ -8,7 +8,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
8
8
supports_date_lookup_using_string = False
9
9
supports_foreign_keys = False
10
10
supports_ignore_conflicts = False
11
- supports_json_field = True
12
11
supports_json_field_contains = False
13
12
has_native_json_field = True
14
13
# BSON Date type doesn't support microsecond precision.
@@ -42,8 +41,12 @@ class DatabaseFeatures(BaseDatabaseFeatures):
42
41
# tuple index out of range in process_rhs()
43
42
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one" ,
44
43
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one_offset" ,
44
+ # Regex lookup doesn't work on non-string fields.
45
+ "lookup.tests.LookupTests.test_regex_non_string" ,
45
46
# Substr not implemented.
46
- "lookup.tests.LookupTests.test_pattern_lookups_with_substr" ,
47
+ "lookup.tests.LookupTests.test_pattern_lookups_with_substr"
48
+ # Querying ObjectID with string doesn't work.
49
+ "lookup.tests.LookupTests.test_lookup_int_as_str" ,
47
50
# Regex lookup doesn't work on json fields.
48
51
"model_fields.test_jsonfield.TestQuerying.test_icontains" ,
49
52
# MongoDB gives the wrong result of log(number, base) when base is a
@@ -252,10 +255,9 @@ def django_test_expected_failures(self):
252
255
"expressions.tests.NegatedExpressionTests.test_filter" ,
253
256
"expressions_case.tests.CaseExpressionTests.test_annotate_values_not_in_order_by" ,
254
257
"expressions_case.tests.CaseExpressionTests.test_order_by_conditional_implicit" ,
258
+ "model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count" ,
255
259
# annotate().filter().count() gives incorrect results.
256
260
"db_functions.datetime.test_extract_trunc.DateFunctionTests.test_extract_year_exact_lookup" ,
257
- # FieldDoesNotExist with ordering.
258
- "model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count" ,
259
261
},
260
262
"Count doesn't work in QuerySet.annotate()" : {
261
263
"annotations.tests.AliasTests.test_alias_annotate_with_aggregation" ,
0 commit comments