Skip to content

Commit d35cf0d

Browse files
committed
set DatabaseFeatures.allows_multiple_constraints_on_same_fields = False
1 parent 484ab49 commit d35cf0d

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
@@ -113,14 +114,11 @@ class DatabaseFeatures(BaseDatabaseFeatures):
113114
"schema.tests.SchemaTests.test_remove_constraints_capital_letters",
114115
"schema.tests.SchemaTests.test_remove_db_index_doesnt_remove_custom_indexes",
115116
# AlterField (unique)
116-
"schema.tests.SchemaTests.test_remove_field_unique_does_not_remove_meta_constraints",
117117
"schema.tests.SchemaTests.test_unique",
118118
"schema.tests.SchemaTests.test_unique_and_reverse_m2m",
119119
# alter_index_together
120120
"schema.tests.SchemaTests.test_index_together",
121-
"schema.tests.SchemaTests.test_remove_index_together_does_not_remove_meta_indexes",
122121
# alter_unique_together
123-
"schema.tests.SchemaTests.test_remove_unique_together_does_not_remove_meta_constraints",
124122
"schema.tests.SchemaTests.test_unique_together",
125123
# ManyToManyField
126124
"schema.tests.SchemaTests.test_m2m_repoint",

0 commit comments

Comments
 (0)