Re: [Django] #36522: Tuple lookups cannot handle right-hand sides mixing literal values and expressions

10 views
Skip to first unread message

Django

unread,
Jul 24, 2025, 3:09:42 PM7/24/25
to django-...@googlegroups.com
#36522: Tuple lookups cannot handle right-hand sides mixing literal values and
expressions
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
compositeprimarykey, F, composite |
primary key, rhs |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* owner: (none) => Simon Charette
* stage: Unreviewed => Accepted
* status: new => assigned

Comment:

Accepting in this case, thanks for your continued iron out of the
composite primary key feature.
--
Ticket URL: <https://code.djangoproject.com/ticket/36522#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 24, 2025, 3:37:57 PM7/24/25
to django-...@googlegroups.com
#36522: Tuple lookups cannot handle right-hand sides mixing literal values and
expressions
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
compositeprimarykey, F, composite |
primary key, rhs |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36522#comment:4>

Django

unread,
Jul 25, 2025, 7:43:26 AM7/25/25
to django-...@googlegroups.com
#36522: Tuple lookups cannot handle right-hand sides mixing literal values and
expressions
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Ready for
compositeprimarykey, F, composite | checkin
primary key, rhs |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/36522#comment:5>

Django

unread,
Jul 28, 2025, 3:39:39 PM7/28/25
to django-...@googlegroups.com
#36522: Tuple lookups cannot handle right-hand sides mixing literal values and
expressions
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: Simon
| Charette
Type: Bug | Status: closed
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
compositeprimarykey, F, composite | checkin
primary key, rhs |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by nessita <124304+nessita@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"0a4999b422702c64e21f5a10a4d60300b7074401" 0a4999b4]:
{{{#!CommitTicketReference repository=""
revision="0a4999b422702c64e21f5a10a4d60300b7074401"
Fixed #36522 -- Added support for filtering composite pks using a tuple of
expressions.

Thanks Jacob Walls for the report, and Sarah Boyce and Mariusz Felisiak
for reviews.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36522#comment:6>

Django

unread,
Jul 28, 2025, 3:40:35 PM7/28/25
to django-...@googlegroups.com
#36522: Tuple lookups cannot handle right-hand sides mixing literal values and
expressions
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: Simon
| Charette
Type: Bug | Status: closed
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
compositeprimarykey, F, composite | checkin
primary key, rhs |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia <124304+nessita@…>):

In [changeset:"3031c512f0cf030dc8f99128bcb4fb9d4d6e285a" 3031c51]:
{{{#!CommitTicketReference repository=""
revision="3031c512f0cf030dc8f99128bcb4fb9d4d6e285a"
[5.2.x] Fixed #36522 -- Added support for filtering composite pks using a
tuple of expressions.

Thanks Jacob Walls for the report, and Sarah Boyce and Mariusz Felisiak
for reviews.

Backport of 0a4999b422702c64e21f5a10a4d60300b7074401 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36522#comment:7>
Reply all
Reply to author
Forward
0 new messages