#30813: dumpdata > flush > loaddata.
-------------------------------------+-------------------------------------
Reporter: Maksych | Owner: nobody
Type: Bug | Status: closed
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: new => closed
* version: 2.2 => master
* resolution: => invalid
Comment:
`dumpdata` dumps primary keys by default which don't exist anymore after
`flush`, so it's expected that such combination of commands fails. You
should try:
{{{
django-admin dumpdata --natural-foreign --natural-primary
}}}
to avoid dumping auto primary keys (see
[https://docs.djangoproject.com/en/2.2/ref/django-admin/#dumpdata
documentation]).
Closing per TicketClosingReasons/UseSupportChannels.
--
Ticket URL: <https://code.djangoproject.com/ticket/30813#comment:1>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/065.82c505f0a1a582fa0c490565b14aa836%40djangoproject.com.