#28166: Model _state.db for an inherited object is not correctly populated to
parent object
-------------------------------------+-------------------------------------
Reporter: wckao | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.11
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
It should only be a matter of storing the result of `rel_model` in a
temporary variable to assign `_state.db = instance._state.db` to it before
returning in
[https://github.com/django/django/commit/38575b007a722d6af510ea46d46393a4cda9ca29
#diff-e0e6b7bbb34fe6e0bfae9aedede3405fR282 ForwardOneToOneDescriptor.
get_object()].
--
Ticket URL: <https://code.djangoproject.com/ticket/28166#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.33f83baf389db4fded4efb35f416c3cb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.