manage.py loaddata should have better error reporting
|Reported by:||Owned by:||David A Krauth|
|Severity:||Keywords:||manage.py loaddata dumpdata|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When dumping database with
python manage.py --format=xml dumpdata > dump.xml
I'd like to migrate to another one and load data back. However, I perhaps have some inconsistency, so I got
python manage.py loaddata dump.xml Loading 'dump' fixtures... Installing xml fixture 'dump' from absolute path. Problem installing fixture 'dump.xml': WikiObject matching query does not exist.
I have to fix it manually, however I have no idea which query failed and with FK I have to fix (or obect to delete etc.) (and yes, I have no idea when this inconsistency started).
loaddata should display on which object this query failed.