Opened 5 years ago

Closed 5 years ago

#30814 closed Bug (duplicate)

dampdata > flush > loaddata

Reported by: Maksych Owned by: nobody
Component: Core (Management commands) Version: 2.2
Severity: Normal Keywords: flush
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

My full actions:

django-admin startproject project .
python manage.py makemigrations
python manage.py migrate
python manage.py dumpdata > db.json
python manage.py loaddata db.json

And all it's okay, but after:

python manage.py flush
python manage.py loaddata db.json

Raised exception because content-types after flush is diferent betwen after migrate.

Change History (1)

comment:1 by Claude Paroz, 5 years ago

Resolution: duplicate
Status: newclosed

No need to duplicate tickets, the discussion happens on #30813.

Note: See TracTickets for help on using tickets.
Back to Top