Skip to content

Commit ee44faf

Browse files
committed
update to Django 5.1
1 parent a58f54c commit ee44faf

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
@@ -83,7 +83,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
8383
"annotations.tests.NonAggregateAnnotationTestCase.test_mti_annotations",
8484
"expressions.test_queryset_values.ValuesExpressionsTests.test_values_list_expression",
8585
"expressions.test_queryset_values.ValuesExpressionsTests.test_values_list_expression_flat",
86-
"expressions.tests.IterableLookupInnerExpressionsTests.test_expressions_in_lookups_join_choice",
86+
"expressions.tests.IterableLookupInnerExpressionsTests.test_expressions_range_lookups_join_choice",
8787
"ordering.tests.OrderingTests.test_order_by_grandparent_fk_with_expression_in_default_ordering",
8888
"ordering.tests.OrderingTests.test_order_by_parent_fk_with_expression_in_default_ordering",
8989
"ordering.tests.OrderingTests.test_order_by_ptr_field_with_default_ordering_by_expression",
@@ -104,6 +104,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
104104
"queries.test_explain.ExplainUnsupportedTests.test_message",
105105
# filter() on related model + update() doesn't work.
106106
"queries.tests.Queries5Tests.test_ticket9848",
107+
# $concat only supports strings, not int
108+
"db_functions.text.test_concat.ConcatTests.test_concat_non_str",
107109
}
108110
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
109111
_django_test_expected_failures_bitwise = {
@@ -165,6 +167,8 @@ def django_test_expected_failures(self):
165167
"expressions.tests.BasicExpressionsTests.test_object_update_unsaved_objects",
166168
"expressions.tests.BasicExpressionsTests.test_order_of_operations",
167169
"expressions.tests.BasicExpressionsTests.test_parenthesis_priority",
170+
"expressions.tests.BasicExpressionsTests.test_slicing_of_f_expressions_charfield",
171+
"expressions.tests.BasicExpressionsTests.test_slicing_of_f_expressions_textfield",
168172
"expressions.tests.BasicExpressionsTests.test_update",
169173
"expressions.tests.BasicExpressionsTests.test_update_with_fk",
170174
"expressions.tests.BasicExpressionsTests.test_update_with_none",
@@ -288,6 +292,7 @@ def django_test_expected_failures(self):
288292
"expressions.tests.BasicExpressionsTests.test_case_in_filter_if_boolean_output_field",
289293
"expressions.tests.BasicExpressionsTests.test_exists_in_filter",
290294
"expressions.tests.BasicExpressionsTests.test_order_by_exists",
295+
"expressions.tests.BasicExpressionsTests.test_slicing_of_outerref",
291296
"expressions.tests.BasicExpressionsTests.test_subquery",
292297
"expressions.tests.ExistsTests.test_filter_by_empty_exists",
293298
"expressions.tests.ExistsTests.test_negated_empty_exists",
@@ -370,6 +375,7 @@ def django_test_expected_failures(self):
370375
"queries.tests.EmptyQuerySetTests.test_values_subquery",
371376
"queries.tests.ExcludeTests.test_exclude_subquery",
372377
"queries.tests.NullInExcludeTest.test_null_in_exclude_qs",
378+
"queries.tests.Queries1Tests.test_combining_does_not_mutate",
373379
"queries.tests.Queries1Tests.test_ticket9985",
374380
"queries.tests.Queries1Tests.test_ticket9997",
375381
"queries.tests.Queries1Tests.test_ticket10742",
@@ -494,6 +500,7 @@ def django_test_expected_failures(self):
494500
"Test inspects query for SQL": {
495501
"delete.tests.DeletionTests.test_only_referenced_fields_selected",
496502
"lookup.tests.LookupTests.test_in_ignore_none",
503+
"lookup.tests.LookupTests.test_lookup_direct_value_rhs_unwrapped",
497504
"lookup.tests.LookupTests.test_textfield_exact_null",
498505
"queries.tests.ExistsSql.test_exists",
499506
"queries.tests.Queries6Tests.test_col_alias_quoted",

0 commit comments

Comments
 (0)