index
:
django.git
fix-31295
main
stable/5.2.x
stable/6.0.x
django
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
django
/
db
/
models
/
query_utils.py
Age
Commit message (
Expand
)
Author
2025-11-05
[5.2.x] Fixed CVE-2025-64459 -- Prevented SQL injections in Q/QuerySet via th...
Jacob Walls
2025-08-04
[5.2.x] Fixed #34871, #36518 -- Implemented unresolved lookups expression rep...
Simon Charette
2024-09-09
Refs #373 -- Added Model._is_pk_set() abstraction to check if a Model's PK is...
Csirmaz Bendegúz
2024-09-02
Fixed #35712 -- Prevented Q.check() from leaving the connection in an unusabl...
Alex Fischer
2024-05-02
Refs #34007, Refs #35359 -- Added Q.referenced_based_fields property.
David Sanders
2024-04-23
Refs #35356 -- Clarified select related with masked field logic.
Simon Charette
2024-02-26
Fixed #35241 -- Cached model's full parent list.
Adam Johnson
2024-01-26
Applied Black's 2024 stable style.
Mariusz Felisiak
2023-09-16
Fixed #34842 -- Fixed ModelAdmin.readonly_fields crash with GeneratedFields.
Paolo Melchiorre
2023-09-07
Fixed #31300 -- Added GeneratedField model field.
Jeremy Nauta
2023-08-23
Fixed #34744 -- Prevented recreation of migration for constraints with a dict...
David Sanders
2023-04-24
Refs #33766 -- Removed sql.Query.build_filtered_relation_q().
Simon Charette
2023-04-24
Fixed #33766 -- Resolved FilteredRelation.condition at referencing time.
Simon Charette
2023-01-18
Refs #34233 -- Used @functools.cache.
Nick Pope
2022-11-09
Fixed #28477 -- Stripped unused annotations on aggregation.
Simon Charette
2022-09-13
Fixed #33996 -- Fixed CheckConstraint validation on NULL values.
David Sanders
2022-09-02
Fixed #29799 -- Allowed registering lookups per field instances.
Allen Jonathan David
2022-08-30
Fixed #21204 -- Tracked field deferrals by field instead of models.
Simon Charette
2022-08-30
Merged nested if statements in select_related_descend().
Simon Charette
2022-07-27
Refs #32948 -- Simplified and optimized Q._combine() and __invert__().
Nick Pope
2022-05-04
Refs #30581 -- Added Q.check() hook.
Gagaro
2022-05-03
Refs #30581 -- Added Q.flatten().
Gagaro
2022-04-12
Fixed #33626 -- Cleared cache when unregistering a lookup.
Himanshu-Balasamanta
2022-03-31
Updated select_related_descend() comment.
Mariusz Felisiak
2022-03-04
Fixed #29865 -- Added logical XOR support for Q() and querysets.
Ryan Heard
2022-02-07
Refs #33476 -- Reformatted code with Black.
django-bot
2021-04-28
Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery deconstruct...
Simon Charette
2021-03-17
Fixed #32548 -- Fixed crash when combining Q() objects with boolean expressions.
Jonathan Richards
2021-02-18
Fixed #32455 -- Allowed right combining Q() with boolean expressions.
Hasan Ramezani
2021-02-18
Fixed #32450 -- Fixed crash when ANDing/ORing an empty Q() with not pickleabl...
starryrbs
2021-01-14
Refs #30988 -- Removed InvalidQuery exception per deprecation timeline.
Mariusz Felisiak
2020-06-10
Fixed #31680 -- Removed unnecessary getattr() call in DeferredAttribute.__get...
alosultan
2020-01-29
Simplified DeferredAttribute.__get__() a bit.
Taoup
2019-12-06
Fixed #31060 -- Reallowed window expressions to be used in conditions outside...
Alex Aktsipetrov
2019-11-18
Fixed #30988 -- Deprecated the InvalidQuery exception.
Simon Charette
2019-11-18
Replaced QueryWrapper single usage with RawSQL.
Simon Charette
2019-10-01
Fixed #30651 -- Made __eq__() methods return NotImplemented for not implement...
ElizabethU
2019-07-25
Refs #30657 -- Made DeferredAttribute.__init__() to take a field instance ins...
Jon Dufresne
2019-04-03
Fixed typo in django/db/models/query_utils.py comment.
David Beitey
2018-10-08
Replaced kwargs.pop() with keyword-only arguments.
Jon Dufresne
2018-09-28
Refs #28909 -- Simplifed code using unpacking generalizations.
Sergey Fedoseev
2018-02-12
Refs #29125 -- Made Q.deconstruct() omit 'query_utils' in the path and _conne...
Tim Graham
2018-02-12
Fixed #29125 -- Made Q.deconstruct() deterministic with multiple keyword argu...
Tim Graham
2018-01-02
Removed DeferredAttribute.__init__()'s unused model argument.
Mariusz Felisiak
2017-12-08
Refs #27849 -- Removed empty Q() hack in filtered Aggregate.as_sql().
Simon Charette
2017-09-22
Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) s...
Nicolas Delaby
2017-07-28
Prevented query_utils.refs_expression() from looking for empty string in anno...
Sergey Fedoseev
2017-05-25
Fixed #28211 -- Prevented ORing an empty Q() from reducing query join efficie...
Tom
2017-02-28
Refs #27656 -- Updated django.db docstring verbs according to PEP 257.
Anton Samarchyan
2017-02-23
Refs #11964 -- Made Q objects deconstructible.
Ian Foote
[next]