Skip to content
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

Fix QuerySet.raw_aggregate() when document key order differs from model field order #274

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

Jibola
Copy link
Contributor

@Jibola Jibola commented Mar 23, 2025

The order may differ in legacy databases, due to rearranging a model's fields, after a schema change, etc.

@Jibola Jibola marked this pull request as draft March 23, 2025 21:12
@timgraham timgraham changed the title [Bugfix]: Maintain key order within _make_result iter Fix QuerySet.raw_aggregate() when document key order differs from model field order Mar 24, 2025
@timgraham timgraham force-pushed the coalesce-key-order branch from acb9a34 to 5ab4f6e Compare March 25, 2025 18:03
@timgraham timgraham marked this pull request as ready for review March 25, 2025 23:57
@timgraham timgraham merged commit 5ab4f6e into main Mar 25, 2025
16 checks passed
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.

3 participants