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