Changes between Version 1 and Version 2 of Ticket #36075
- Timestamp:
- Jan 8, 2025, 11:53:07 PM (20 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36075 – Description
v1 v2 1 1 A particular focus should be put on the fact that the flag will and should only be set to `True` if the field is the single member of the primary key. When a composite primary is defined on the model this flag will be `False` for all the fields defined on the model and `_meta.pk_fields` (which should be documented) should be used instead to build composite primary key ready third-party application. 2 2 3 In other words, it should be made clear that code that relies solely on `Field.primary_key` is not composite primary key ready and that `_meta.pk_fields` should be used instead. 3 In other words, it should be made clear that code that relies solely on `Field.primary_key` is not composite primary key ready and that `_meta.pk_fields` should be used instead. I feel like this is something that should be clearly pointed out in the release notes as well.