Jacob Walls
2bf4c5b9ea
[5.2.x] Fixed #36416 -- Made QuerySet.in_bulk() account for composite pks in id_list.
...
Backport of 26313bc21932d0d3af278ab387549d63b1f64575 from main.
2025-06-03 17:46:59 +02:00
Simon Charette
e23dd72880
[5.2.x] 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.
Backport of 8be0c0d6901669661fca578f474cd51cd284d35a from main.
2025-05-12 13:34:45 +02:00
Simon Charette
dc1c9b4ddd
[5.2.x] 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.
Backport of 41239fe34d64e801212dccaa4585e4802d0fac68 from main.
2025-02-11 09:16:44 +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