Skip to content

Commit 1ba7b13

Browse files
committed
set DatabaseFeatures.allows_multiple_constraints_on_same_fields = False
1 parent b7dbd70 commit 1ba7b13

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

django_mongodb/features.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
class DatabaseFeatures(BaseDatabaseFeatures):
66
allow_sliced_subqueries_with_in = False
7+
allows_multiple_constraints_on_same_fields = False
78
can_create_inline_fk = False
89
can_introspect_foreign_keys = False
910
greatest_least_ignores_nulls = True
@@ -116,14 +117,11 @@ class DatabaseFeatures(BaseDatabaseFeatures):
116117
"schema.tests.SchemaTests.test_remove_constraints_capital_letters",
117118
"schema.tests.SchemaTests.test_remove_db_index_doesnt_remove_custom_indexes",
118119
# AlterField (unique)
119-
"schema.tests.SchemaTests.test_remove_field_unique_does_not_remove_meta_constraints",
120120
"schema.tests.SchemaTests.test_unique",
121121
"schema.tests.SchemaTests.test_unique_and_reverse_m2m",
122122
# alter_index_together
123123
"schema.tests.SchemaTests.test_index_together",
124-
"schema.tests.SchemaTests.test_remove_index_together_does_not_remove_meta_indexes",
125124
# alter_unique_together
126-
"schema.tests.SchemaTests.test_remove_unique_together_does_not_remove_meta_constraints",
127125
"schema.tests.SchemaTests.test_unique_together",
128126
# ManyToManyField
129127
"schema.tests.SchemaTests.test_m2m_rename_field_in_target_model",

0 commit comments

Comments
 (0)