We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a163df commit 05aef78Copy full SHA for 05aef78
.github/workflows/test-python.yml
@@ -67,6 +67,7 @@ jobs:
67
- name: Run tests
68
run: >
69
python3 django_repo/tests/runtests.py --settings mongodb_settings -v 2
70
+ auth_tests.test_models.UserManagerTestCase
71
backends.base.test_base.DatabaseWrapperTests
72
basic
73
dates
django_mongodb/operations.py
@@ -11,7 +11,7 @@ class DatabaseOperations(BaseDatabaseOperations):
11
compiler_module = "django_mongodb.compiler"
12
13
def adapt_datetimefield_value(self, value):
14
- if not settings.USE_TZ and timezone.is_naive(value):
+ if not settings.USE_TZ and value is not None and timezone.is_naive(value):
15
value = timezone.make_aware(value)
16
return value
17
0 commit comments