#24607: dumpdata (with natural keys) / loaddata failure for model inheriting
from
User
--------------------------------------+------------------------------------
Reporter: denys-duchier | Owner: nobody
Type: Bug | Status: new
Component: Core (Serialization) | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):
* needs_better_patch: 0 => 1
Comment:
Waiting for a response from the reporter on the pull request, but it seems
to me the issue is that `use_natural_primary_keys` is not compatible with
serializing multi-table inheritance models since the child models require
the primary key to be linked to their parent. I'm not sure that adding a
lot of complexity to essential "undo" the option for the affected models
is worth it. Could we simply document the limitation?
--
Ticket URL: <https://code.djangoproject.com/ticket/24607#comment:7>
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/071.9dfdeb6ff1d344b8fb20e09cc12378bb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.