-
Notifications
You must be signed in to change notification settings - Fork 31
INTPYTHON-795 Update to Django 6.0 #280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
3b8b13b to
6dacd76
Compare
22f82c1 to
329b2b7
Compare
923146b to
757ce75
Compare
54c1059 to
306f2d6
Compare
3a27a24 to
8c303ca
Compare
bec0ec5 to
251bea0
Compare
e2e35b4 to
47271df
Compare
fa88713 to
2b41c23
Compare
511628b to
c1549ec
Compare
c52e2fa to
724347d
Compare
9ec6d4c to
0ce64ca
Compare
| except FullResultSet: | ||
| lhs_mql = source_expressions[0].as_mql(compiler, connection, as_expr=True) | ||
| except EmptyResultSet: | ||
| lhs_mql = Value(None).as_mql(compiler, connection, as_expr=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aggregation.test_filter_argument.FilteredAggregateTests.test_filtered_aggregate_empty_condition uses the EmptyResultSet branch but aggregation.test_filter_argument.FilteredAggregateTests.test_filtered_aggregate_full_condition doesn't use the FullResultSet branch. I didn't analyze to tell whether another test is needed for that branch or if the FullResultSet branch isn't needed.
| node.set_source_expressions([Case(condition), *source_expressions[1:]]) | ||
| try: | ||
| lhs_mql = self.filter.as_mql(compiler, connection, as_expr=True) | ||
| except NotSupportedError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The NotSupportedError is "AggregateFilter may need an as_mql() method." It looks like we couldn't move this logic to AggregateFilter.as_mql() because the logic is different when AggregateFilter is used in count(), correct?
Django 6.0 was released December 3, 2025.