Skip to content

Commit 55fd0c5

Browse files
committed
update to Django 5.1
1 parent c05c3a2 commit 55fd0c5

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/checkout@v4
4848
with:
4949
repository: 'mongodb-forks/django'
50-
ref: 'mongodb-5.0.x'
50+
ref: 'mongodb-5.1.x'
5151
path: 'django_repo'
5252
- name: Install system packages for Django's Python test dependencies
5353
run: |

django_mongodb/__init__.py

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

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

django_mongodb/features.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
8484
"annotations.tests.NonAggregateAnnotationTestCase.test_mti_annotations",
8585
"expressions.test_queryset_values.ValuesExpressionsTests.test_values_list_expression",
8686
"expressions.test_queryset_values.ValuesExpressionsTests.test_values_list_expression_flat",
87-
"expressions.tests.IterableLookupInnerExpressionsTests.test_expressions_in_lookups_join_choice",
87+
"expressions.tests.IterableLookupInnerExpressionsTests.test_expressions_range_lookups_join_choice",
8888
"expressions_case.tests.CaseExpressionTests.test_join_promotion",
8989
"expressions_case.tests.CaseExpressionTests.test_join_promotion_multiple_annotations",
9090
"ordering.tests.OrderingTests.test_order_by_grandparent_fk_with_expression_in_default_ordering",
@@ -124,6 +124,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
124124
"queries.test_explain.ExplainUnsupportedTests.test_message",
125125
# filter() on related model + update() doesn't work.
126126
"queries.tests.Queries5Tests.test_ticket9848",
127+
# $concat only supports strings, not int
128+
"db_functions.text.test_concat.ConcatTests.test_concat_non_str",
127129
}
128130
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
129131
_django_test_expected_failures_bitwise = {
@@ -185,6 +187,8 @@ def django_test_expected_failures(self):
185187
"expressions.tests.BasicExpressionsTests.test_object_update_unsaved_objects",
186188
"expressions.tests.BasicExpressionsTests.test_order_of_operations",
187189
"expressions.tests.BasicExpressionsTests.test_parenthesis_priority",
190+
"expressions.tests.BasicExpressionsTests.test_slicing_of_f_expressions_charfield",
191+
"expressions.tests.BasicExpressionsTests.test_slicing_of_f_expressions_textfield",
188192
"expressions.tests.BasicExpressionsTests.test_update",
189193
"expressions.tests.BasicExpressionsTests.test_update_with_fk",
190194
"expressions.tests.BasicExpressionsTests.test_update_with_none",
@@ -308,6 +312,7 @@ def django_test_expected_failures(self):
308312
"expressions.tests.BasicExpressionsTests.test_case_in_filter_if_boolean_output_field",
309313
"expressions.tests.BasicExpressionsTests.test_exists_in_filter",
310314
"expressions.tests.BasicExpressionsTests.test_order_by_exists",
315+
"expressions.tests.BasicExpressionsTests.test_slicing_of_outerref",
311316
"expressions.tests.BasicExpressionsTests.test_subquery",
312317
"expressions.tests.ExistsTests.test_filter_by_empty_exists",
313318
"expressions.tests.ExistsTests.test_negated_empty_exists",
@@ -390,6 +395,7 @@ def django_test_expected_failures(self):
390395
"queries.tests.EmptyQuerySetTests.test_values_subquery",
391396
"queries.tests.ExcludeTests.test_exclude_subquery",
392397
"queries.tests.NullInExcludeTest.test_null_in_exclude_qs",
398+
"queries.tests.Queries1Tests.test_combining_does_not_mutate",
393399
"queries.tests.Queries1Tests.test_ticket9985",
394400
"queries.tests.Queries1Tests.test_ticket9997",
395401
"queries.tests.Queries1Tests.test_ticket10742",
@@ -514,6 +520,7 @@ def django_test_expected_failures(self):
514520
"Test inspects query for SQL": {
515521
"delete.tests.DeletionTests.test_only_referenced_fields_selected",
516522
"lookup.tests.LookupTests.test_in_ignore_none",
523+
"lookup.tests.LookupTests.test_lookup_direct_value_rhs_unwrapped",
517524
"lookup.tests.LookupTests.test_textfield_exact_null",
518525
"queries.tests.ExistsSql.test_exists",
519526
"queries.tests.Queries6Tests.test_col_alias_quoted",

0 commit comments

Comments
 (0)