@@ -61,6 +61,17 @@ class DatabaseFeatures(BaseDatabaseFeatures):
61
61
"aggregation.tests.AggregateTestCase.test_aggregation_default_passed_another_aggregate" ,
62
62
"aggregation.tests.AggregateTestCase.test_annotation_expressions" ,
63
63
"aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate" ,
64
+ # MongoAutoField.get_prep_value() must accept strings.
65
+ "model_forms.test_modelchoicefield.ModelChoiceFieldTests.test_choices" ,
66
+ "model_forms.test_modelchoicefield.ModelChoiceFieldTests.test_clean_model_instance" ,
67
+ "model_forms.tests.ModelFormBasicTests.test_m2m_editing" ,
68
+ "model_forms.tests.ModelMultipleChoiceFieldTests.test_clean_does_deduplicate_values" ,
69
+ "model_forms.tests.ModelMultipleChoiceFieldTests.test_model_multiple_choice_field" ,
70
+ "model_forms.tests.ModelOneToOneFieldTests.test_onetoonefield" ,
71
+ "model_forms.tests.ModelFormBasicTests.test_initial_values" ,
72
+ "model_forms.tests.ModelMultipleChoiceFieldTests.test_model_multiple_choice_show_hidden_initial" ,
73
+ # AutoField (IntegerField) validators crash MongoAutoField.
74
+ "model_forms.tests.ModelFormBasicTests.test_recleaning_model_form_instance" ,
64
75
}
65
76
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
66
77
_django_test_expected_failures_bitwise = {
@@ -105,6 +116,7 @@ def django_test_expected_failures(self):
105
116
"QuerySet.prefetch_related() is not supported on MongoDB." : {
106
117
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_proxied" ,
107
118
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_reverse_proxied" ,
119
+ "model_forms.tests.OtherModelFormTests.test_prefetch_related_queryset" ,
108
120
},
109
121
"QuerySet.update() with expression not supported." : {
110
122
"annotations.tests.AliasTests.test_update_with_alias" ,
@@ -226,6 +238,11 @@ def django_test_expected_failures(self):
226
238
"lookup.tests.LookupTests.test_exact_exists" ,
227
239
"lookup.tests.LookupTests.test_nested_outerref_lhs" ,
228
240
"lookup.tests.LookupQueryingTests.test_filter_exists_lhs" ,
241
+ "model_forms.tests.LimitChoicesToTests.test_fields_for_model_applies_limit_choices_to" ,
242
+ "model_forms.tests.LimitChoicesToTests.test_limit_choices_to_callable_for_fk_rel" ,
243
+ "model_forms.tests.LimitChoicesToTests.test_limit_choices_to_callable_for_m2m_rel" ,
244
+ "model_forms.tests.LimitChoicesToTests.test_limit_choices_to_m2m_through" ,
245
+ "model_forms.tests.LimitChoicesToTests.test_limit_choices_to_no_duplicates" ,
229
246
"queries.tests.ExcludeTest17600.test_exclude_plain" ,
230
247
"queries.tests.ExcludeTest17600.test_exclude_with_q_is_equal_to_plain_exclude_variation" ,
231
248
"queries.tests.ExcludeTest17600.test_exclude_with_q_object_no_distinct" ,
0 commit comments