@@ -69,6 +69,18 @@ class DatabaseFeatures(BaseDatabaseFeatures):
69
69
"aggregation_regress.tests.AggregationTests.test_more_more_more3" ,
70
70
# Incorrect JOIN with GenericRelation gives incorrect results.
71
71
"aggregation_regress.tests.AggregationTests.test_aggregation_with_generic_reverse_relation" ,
72
+ # MongoAutoField.get_prep_value() must accept strings.
73
+ "model_forms.test_modelchoicefield.ModelChoiceFieldTests.test_choices" ,
74
+ "model_forms.test_modelchoicefield.ModelChoiceFieldTests.test_clean_model_instance" ,
75
+ "model_forms.tests.ModelFormBasicTests.test_int_pks" ,
76
+ "model_forms.tests.ModelFormBasicTests.test_m2m_editing" ,
77
+ "model_forms.tests.ModelMultipleChoiceFieldTests.test_clean_does_deduplicate_values" ,
78
+ "model_forms.tests.ModelMultipleChoiceFieldTests.test_model_multiple_choice_field" ,
79
+ "model_forms.tests.ModelOneToOneFieldTests.test_onetoonefield" ,
80
+ "model_forms.tests.ModelFormBasicTests.test_initial_values" ,
81
+ "model_forms.tests.ModelMultipleChoiceFieldTests.test_model_multiple_choice_show_hidden_initial" ,
82
+ # AutoField (IntegerField) validators crash MongoAutoField.
83
+ "model_forms.tests.ModelFormBasicTests.test_recleaning_model_form_instance" ,
72
84
}
73
85
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
74
86
_django_test_expected_failures_bitwise = {
@@ -113,6 +125,7 @@ def django_test_expected_failures(self):
113
125
"QuerySet.prefetch_related() is not supported on MongoDB." : {
114
126
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_proxied" ,
115
127
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_reverse_proxied" ,
128
+ "model_forms.tests.OtherModelFormTests.test_prefetch_related_queryset" ,
116
129
},
117
130
"QuerySet.update() with expression not supported." : {
118
131
"annotations.tests.AliasTests.test_update_with_alias" ,
@@ -235,6 +248,11 @@ def django_test_expected_failures(self):
235
248
"lookup.tests.LookupTests.test_exact_exists" ,
236
249
"lookup.tests.LookupTests.test_nested_outerref_lhs" ,
237
250
"lookup.tests.LookupQueryingTests.test_filter_exists_lhs" ,
251
+ "model_forms.tests.LimitChoicesToTests.test_fields_for_model_applies_limit_choices_to" ,
252
+ "model_forms.tests.LimitChoicesToTests.test_limit_choices_to_callable_for_fk_rel" ,
253
+ "model_forms.tests.LimitChoicesToTests.test_limit_choices_to_callable_for_m2m_rel" ,
254
+ "model_forms.tests.LimitChoicesToTests.test_limit_choices_to_m2m_through" ,
255
+ "model_forms.tests.LimitChoicesToTests.test_limit_choices_to_no_duplicates" ,
238
256
"queries.tests.ExcludeTest17600.test_exclude_plain" ,
239
257
"queries.tests.ExcludeTest17600.test_exclude_with_q_is_equal_to_plain_exclude_variation" ,
240
258
"queries.tests.ExcludeTest17600.test_exclude_with_q_object_no_distinct" ,
0 commit comments