Skip to content

Commit 4f3b81b

Browse files
committed
set DatabaseFeatures.allows_multiple_constraints_on_same_fields = False
1 parent 94632da commit 4f3b81b

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
@@ -107,14 +108,11 @@ class DatabaseFeatures(BaseDatabaseFeatures):
107108
"schema.tests.SchemaTests.test_remove_constraints_capital_letters",
108109
"schema.tests.SchemaTests.test_remove_db_index_doesnt_remove_custom_indexes",
109110
# AlterField (unique)
110-
"schema.tests.SchemaTests.test_remove_field_unique_does_not_remove_meta_constraints",
111111
"schema.tests.SchemaTests.test_unique",
112112
"schema.tests.SchemaTests.test_unique_and_reverse_m2m",
113113
# alter_index_together
114114
"schema.tests.SchemaTests.test_index_together",
115-
"schema.tests.SchemaTests.test_remove_index_together_does_not_remove_meta_indexes",
116115
# alter_unique_together
117-
"schema.tests.SchemaTests.test_remove_unique_together_does_not_remove_meta_constraints",
118116
"schema.tests.SchemaTests.test_unique_together",
119117
# add/remove_constraint
120118
"schema.tests.SchemaTests.test_composed_constraint_with_fk",

0 commit comments

Comments
 (0)