Jacob Walls
26313bc219
Fixed #36416 -- Made QuerySet.in_bulk() account for composite pks in id_list.
2025-06-03 18:45:15 +03:00
Simon Charette
8be0c0d690
Fixed #36373 -- Fixed select_related() crash on foreign object for a composite pk.
...
Thanks Jacob Walls for the report and Sarah for the in-depth review.
2025-05-12 12:33:07 +01:00
SaJH
1831f7733d
Fixed #36326 -- Added CompositePrimaryKey support in QuerySet.raw().
...
Signed-off-by: SaJH <wogur981208@gmail.com>
2025-04-17 17:23:06 +02:00
Simon Charette
41239fe34d
Fixed #36149 -- Allowed subquery values against tuple exact and in lookups.
...
Non-tuple exact and in lookups have specialized logic for subqueries that can
be adapted to properly assign select mask if unspecified and ensure the number
of involved members are matching on both side of the operator.
2025-02-11 09:08:35 +01:00
Sarah Boyce
bf7b17d16d
Refs #36075 -- Used field in pk_fields over field.primary_key.
2025-01-13 12:04:59 +01:00
Sarah Boyce
6a1a9c0ead
Fixed #36062 -- Handled serialization of CompositePrimaryKeys.
2025-01-08 14:52:59 +01:00
Tim Graham
733d3998e2
Refs #373 -- Fixed false failure of test_error_on_comment_pk_conflict.
...
The test failed with "NOT NULL constraint failed" rather than
"UNIQUE constraint failed: tenant_id, comment_id".
2024-12-26 23:29:04 -03:00
Sarah Boyce
28f81a1019
Refs #373 -- Fixed CompositePrimaryKey tests if yaml isn't installed.
2024-12-05 10:23:34 +01:00
Mariusz Felisiak
49761ac99a
Refs #373 -- Simplified DatabaseIntrospection.get_constraints() tests for composite primary keys.
2024-12-02 11:03:42 +01:00
Bendeguz Csirmaz
978aae4334
Fixed #373 -- Added CompositePrimaryKey.
...
Thanks Lily Foote and Simon Charette for reviews and mentoring
this Google Summer of Code 2024 project.
Co-authored-by: Simon Charette <charette.s@gmail.com>
Co-authored-by: Lily Foote <code@lilyf.org>
2024-11-29 11:23:04 +01:00