Changes between Initial Version and Version 1 of Ticket #36093, comment 3


Ignore:
Timestamp:
Jan 13, 2025, 10:17:27 AM (30 hours ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36093, comment 3

    initial v1  
    11> This is because the primary key of a child model is a `OneToOneField` to the parent model (e.g. `place_ptr`), and it's not in `pk_fields`
    22
    3 If that's truly the case (I haven't validated myself) it is a bug in `pk_fields` itself.
     3If that's truly the case it is a bug in `pk_fields` itself.
     4
     5The one-to-one parent link seems to be in `pk_fields` though?
     6
     7{{{#!python
     8>>> Restaurant._meta.pk_fields
     9[<django.db.models.fields.related.OneToOneField: place_ptr>]
     10}}}
     11
Back to Top