@@ -38,6 +38,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
38
38
"lookup.tests.LookupQueryingTests.test_lookup_in_order_by" ,
39
39
"ordering.tests.OrderingTests.test_default_ordering_by_f_expression" ,
40
40
"ordering.tests.OrderingTests.test_default_ordering_does_not_affect_group_by" ,
41
+ "ordering.tests.OrderingTests.test_order_by_constant_value" ,
41
42
"ordering.tests.OrderingTests.test_order_by_expression_ref" ,
42
43
"ordering.tests.OrderingTests.test_order_by_f_expression" ,
43
44
"ordering.tests.OrderingTests.test_order_by_f_expression_duplicates" ,
@@ -61,6 +62,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
61
62
"model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder" ,
62
63
"model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform" ,
63
64
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform" ,
65
+ # alias().order_by() doesn't work.
66
+ "annotations.tests.AliasTests.test_order_by_alias" ,
67
+ # annotate() + values_list() + order_by() loses annotated value.
68
+ "expressions_case.tests.CaseExpressionTests.test_annotate_values_not_in_order_by" ,
64
69
}
65
70
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
66
71
_django_test_expected_failures_bitwise = {
@@ -221,22 +226,15 @@ def django_test_expected_failures(self):
221
226
"annotations.tests.NonAggregateAnnotationTestCase.test_combined_f_expression_annotation_with_aggregation" ,
222
227
"annotations.tests.NonAggregateAnnotationTestCase.test_full_expression_annotation_with_aggregation" ,
223
228
"annotations.tests.NonAggregateAnnotationTestCase.test_grouping_by_q_expression_annotation" ,
229
+ "annotations.tests.NonAggregateAnnotationTestCase.test_order_by_aggregate" ,
224
230
"annotations.tests.NonAggregateAnnotationTestCase.test_q_expression_annotation_with_aggregation" ,
225
231
"expressions_case.tests.CaseDocumentationExamples.test_conditional_aggregation_example" ,
232
+ "model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count" ,
226
233
# Func not implemented.
227
234
"annotations.tests.NonAggregateAnnotationTestCase.test_custom_functions" ,
228
235
"annotations.tests.NonAggregateAnnotationTestCase.test_custom_functions_can_ref_other_functions" ,
229
236
# BaseDatabaseOperations may require a format_for_duration_arithmetic().
230
237
"annotations.tests.NonAggregateAnnotationTestCase.test_mixed_type_annotation_date_interval" ,
231
- # FieldDoesNotExist with ordering.
232
- "annotations.tests.AliasTests.test_order_by_alias" ,
233
- "annotations.tests.NonAggregateAnnotationTestCase.test_order_by_aggregate" ,
234
- "annotations.tests.NonAggregateAnnotationTestCase.test_order_by_annotation" ,
235
- "expressions.tests.NegatedExpressionTests.test_filter" ,
236
- "expressions_case.tests.CaseExpressionTests.test_annotate_values_not_in_order_by" ,
237
- "expressions_case.tests.CaseExpressionTests.test_order_by_conditional_implicit" ,
238
- "model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count" ,
239
- "ordering.tests.OrderingTests.test_order_by_constant_value" ,
240
238
},
241
239
"Exists is not supported on MongoDB." : {
242
240
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_none_query" ,
0 commit comments