3
3
4
4
class DatabaseFeatures (BaseDatabaseFeatures ):
5
5
supports_foreign_keys = False
6
+ # Not implemented: https://github.com/mongodb-labs/django-mongodb/issues/8
7
+ supports_json_field = False
6
8
# Not implemented: https://github.com/mongodb-labs/django-mongodb/issues/7
7
9
supports_transactions = False
8
10
uses_savepoints = False
@@ -35,6 +37,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
35
37
# Empty queryset ORed (|) with another gives empty results.
36
38
"or_lookups.tests.OrLookupsTests.test_empty_in" ,
37
39
# Joins not supported.
40
+ "model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_with_pk" ,
38
41
"model_fields.test_uuid.TestAsPrimaryKey.test_two_level_foreign_keys" ,
39
42
}
40
43
@@ -52,4 +55,33 @@ class DatabaseFeatures(BaseDatabaseFeatures):
52
55
"QuerySet.update() with expression not supported." : {
53
56
"model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values" ,
54
57
},
58
+ "AutoField not supported." : {
59
+ "model_fields.test_autofield.AutoFieldTests" ,
60
+ "model_fields.test_autofield.BigAutoFieldTests" ,
61
+ "model_fields.test_autofield.SmallAutoFieldTests" ,
62
+ },
63
+ "QuerySet.select_related() not supported." : {
64
+ "model_fields.test_booleanfield.BooleanFieldTests.test_select_related" ,
65
+ "model_fields.test_foreignkey.ForeignKeyTests.test_empty_string_fk" ,
66
+ },
67
+ "MongoDB does not enforce UNIQUE constraints." : {
68
+ "auth_tests.test_basic.BasicTestCase.test_unicode_username" ,
69
+ "auth_tests.test_migrations.ProxyModelWithSameAppLabelTests.test_migrate_with_existing_target_permission" ,
70
+ "constraints.tests.UniqueConstraintTests.test_database_constraint" ,
71
+ "contenttypes_tests.test_operations.ContentTypeOperationsTests.test_content_type_rename_conflict" ,
72
+ "contenttypes_tests.test_operations.ContentTypeOperationsTests.test_existing_content_type_rename" ,
73
+ "custom_pk.tests.CustomPKTests.test_unique_pk" ,
74
+ "force_insert_update.tests.ForceInsertInheritanceTests.test_force_insert_with_existing_grandparent" ,
75
+ "get_or_create.tests.GetOrCreateTestsWithManualPKs.test_create_with_duplicate_primary_key" ,
76
+ "get_or_create.tests.GetOrCreateTestsWithManualPKs.test_savepoint_rollback" ,
77
+ "get_or_create.tests.GetOrCreateThroughManyToMany.test_something" ,
78
+ "get_or_create.tests.UpdateOrCreateTests.test_manual_primary_key_test" ,
79
+ "get_or_create.tests.UpdateOrCreateTestsWithManualPKs.test_create_with_duplicate_primary_key" ,
80
+ "model_fields.test_filefield.FileFieldTests.test_unique_when_same_filename" ,
81
+ "one_to_one.tests.OneToOneTests.test_multiple_o2o" ,
82
+ "queries.test_bulk_update.BulkUpdateTests.test_database_routing_batch_atomicity" ,
83
+ },
84
+ "Test assumes integer primary key." : {
85
+ "model_fields.test_foreignkey.ForeignKeyTests.test_to_python" ,
86
+ },
55
87
}
0 commit comments