Skip to content

Conversation

@timgraham
Copy link
Collaborator

@timgraham timgraham commented Apr 5, 2025

Django 6.0 was released December 3, 2025.

@timgraham timgraham force-pushed the django60 branch 2 times, most recently from 3b8b13b to 6dacd76 Compare April 5, 2025 22:49
@timgraham timgraham force-pushed the django60 branch 2 times, most recently from 22f82c1 to 329b2b7 Compare April 13, 2025 01:58
@timgraham timgraham force-pushed the django60 branch 2 times, most recently from 923146b to 757ce75 Compare May 2, 2025 02:40
@timgraham timgraham force-pushed the django60 branch 2 times, most recently from 54c1059 to 306f2d6 Compare May 7, 2025 00:43
@timgraham timgraham force-pushed the django60 branch 3 times, most recently from 3a27a24 to 8c303ca Compare June 16, 2025 23:38
@timgraham timgraham force-pushed the django60 branch 4 times, most recently from bec0ec5 to 251bea0 Compare August 12, 2025 23:13
@timgraham timgraham force-pushed the django60 branch 2 times, most recently from e2e35b4 to 47271df Compare August 28, 2025 01:19
@timgraham timgraham force-pushed the django60 branch 2 times, most recently from fa88713 to 2b41c23 Compare September 8, 2025 13:20
@timgraham timgraham force-pushed the django60 branch 2 times, most recently from 511628b to c1549ec Compare September 17, 2025 12:00
@timgraham timgraham force-pushed the django60 branch 2 times, most recently from c52e2fa to 724347d Compare October 7, 2025 14:09
@timgraham timgraham changed the title Update to Django 6.0 INTPYTHON-795 Update to Django 6.0 Oct 17, 2025
Comment on lines +31 to +34
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)
Copy link
Collaborator Author

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.

https://github.com/django/django/pull/16267/files#diff-4a2cd3eee8a9e79a3642ae2f30be9e19603ffde7eaa90a879fb02dd401556121R196-R220

node.set_source_expressions([Case(condition), *source_expressions[1:]])
try:
lhs_mql = self.filter.as_mql(compiler, connection, as_expr=True)
except NotSupportedError:
Copy link
Collaborator Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants