Changes between Initial Version and Version 1 of Ticket #36093, comment 3
- Timestamp:
- Jan 13, 2025, 10:17:27 AM (30 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36093, comment 3
initial v1 1 1 > 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` 2 2 3 If that's truly the case (I haven't validated myself) it is a bug in `pk_fields` itself. 3 If that's truly the case it is a bug in `pk_fields` itself. 4 5 The 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