python manage.py dumpdata doesn't sort objects in correct order
|Reported by:||leotr||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have to manually reorder objects in initial_data.<xml, json> before i run python manage.py loaddata.
I think that firstly python manage.py dumpdata command should:
- dump objects without foreign keys
- dump objects having relations to objects in 1.
- dump objects having relations to objects in 2.
until all objects are loaded.