#36093: Calling full_clean() on an existing child model instance in a multi-table
inheritance should not execute a database query.
-------------------------------------+-------------------------------------
Reporter: Sage Abdullah | Owner: (none)
Type: Bug | Status: new
Component: Database layer | Version: dev
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
> 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`
If that's truly the case (I haven't validated myself) it is a bug in
`pk_fields` itself.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36093#comment:3>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.