@@ -7,6 +7,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
7
7
supports_ignore_conflicts = False
8
8
# Not implemented: https://github.com/mongodb-labs/django-mongodb/issues/8
9
9
supports_json_field = False
10
+ # BSON Date type doesn't support microsecond precision.
11
+ supports_microsecond_precision = False
10
12
# MongoDB stores datetimes in UTC.
11
13
supports_timezones = False
12
14
# Not implemented: https://github.com/mongodb-labs/django-mongodb/issues/7
@@ -292,15 +294,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
292
294
"timezones.tests.NewDatabaseTests.test_cursor_explicit_time_zone" ,
293
295
"timezones.tests.NewDatabaseTests.test_raw_sql" ,
294
296
},
295
- "BSON Date type doesn't support microsecond precision." : {
296
- "basic.tests.ModelRefreshTests.test_refresh_unsaved" ,
297
- "basic.tests.ModelTest.test_microsecond_precision" ,
298
- "timezones.tests.LegacyDatabaseTests.test_auto_now_and_auto_now_add" ,
299
- "timezones.tests.LegacyDatabaseTests.test_aware_datetime_in_local_timezone_with_microsecond" ,
300
- "timezones.tests.LegacyDatabaseTests.test_naive_datetime_with_microsecond" ,
301
- "timezones.tests.NewDatabaseTests.test_aware_datetime_in_local_timezone_with_microsecond" ,
302
- "timezones.tests.NewDatabaseTests.test_naive_datetime_with_microsecond" ,
303
- },
304
297
"Transform not supported." : {
305
298
"db_functions.math.test_abs.AbsTests.test_transform" ,
306
299
"db_functions.math.test_acos.ACosTests.test_transform" ,
0 commit comments