Skip to content

Commit 469c265

Browse files
committed
Update to Django 6.0
1 parent 14785e5 commit 469c265

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.evergreen/run-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
set -eux
44

55
# Install django-mongodb-backend
6-
/opt/python/3.10/bin/python3 -m venv venv
6+
/opt/python/3.12/bin/python3 -m venv venv
77
. venv/bin/activate
88
python -m pip install -U pip
99
pip install -e .
1010

1111
# Install django and test dependencies
12-
git clone --branch mongodb-5.2.x https://github.com/mongodb-forks/django django_repo
12+
git clone --branch mongodb-6.0.x https://github.com/mongodb-forks/django django_repo
1313
pushd django_repo/tests/
1414
pip install -e ..
1515
pip install -r requirements/py3.txt

.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: actions/checkout@v4
3434
with:
3535
repository: 'mongodb-forks/django'
36-
ref: 'mongodb-5.2.x'
36+
ref: 'mongodb-6.0.x'
3737
path: 'django_repo'
3838
persist-credentials: false
3939
- name: Install system packages for Django's Python test dependencies

django_mongodb_backend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "5.2.0a0"
1+
__version__ = "6.0.0a0"
22

33
# Check Django compatibility before other imports which may fail if the
44
# wrong version of Django is installed.

django_mongodb_backend/features.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,18 @@ class DatabaseFeatures(BaseDatabaseFeatures):
9292
# Some usage of prefetch_related() raises "ColPairs is not supported."
9393
"known_related_objects.tests.ExistingRelatedInstancesTests.test_one_to_one_multi_prefetch_related",
9494
"known_related_objects.tests.ExistingRelatedInstancesTests.test_one_to_one_prefetch_related",
95-
"prefetch_related.tests.DeprecationTests.test_prefetch_one_level_fallback",
9695
"prefetch_related.tests.MultiDbTests.test_using_is_honored_fkey",
9796
"prefetch_related.tests.MultiDbTests.test_using_is_honored_inheritance",
9897
"prefetch_related.tests.NestedPrefetchTests.test_nested_prefetch_is_not_overwritten_by_related_object",
9998
"prefetch_related.tests.NullableTest.test_prefetch_nullable",
10099
"prefetch_related.tests.Ticket19607Tests.test_bug",
101100
# {'$project': {'name': Decimal128('1')} is broken? (gives None)
102101
"expressions.tests.ValueTests.test_output_field_decimalfield",
102+
# This backend overrides DatabaseCreation.create_test_db() so the
103+
# deprecation warnings stacklevel points to the wrong file.
104+
"backends.base.test_creation.TestDbCreationTests.test_serialize_deprecation",
105+
# This backend has a custom format_debug_sql().
106+
"backends.tests.LastExecutedQueryTest.test_debug_sql",
103107
}
104108
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
105109
_django_test_expected_failures_bitwise = {

0 commit comments

Comments
 (0)