Changes between Version 1 and Version 2 of Ticket #36075


Ignore:
Timestamp:
Jan 8, 2025, 11:53:07 PM (20 hours ago)
Author:
Simon Charette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36075 – Description

    v1 v2  
    11A 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.
    22
    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.
     3In 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.
Back to Top