#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 Sage Abdullah):
Replying to [comment:3 Simon Charette]:
>
> If that's truly the case it is a bug in `pk_fields` itself.
>
> The one-to-one parent link seems to be in `pk_fields` though?
>
> {{{#!python
> >>> Restaurant._meta.pk_fields
> [<django.db.models.fields.related.OneToOneField: place_ptr>]
> }}}
>
Oops, yep, sorry – I was in a rush!
The `OneToOneField` is there, but the real PK in the parent model isn't.
--
Ticket URL: <https://code.djangoproject.com/ticket/36093#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019460778b2d-1561061c-5b00-4061-8348-bb494e45f8c0-000000%40eu-central-1.amazonses.com.