in python's xml deserializer (whitespace is significant when recognizing <None/> nodes, so a general pretty-printer will cause them to not be recognized.) This changes empty elements to the more verbose <foo></foo> format, but that is handled properly by the xml parser. - Legacy-Id: 382
7 lines
217 B
Bash
Executable file
7 lines
217 B
Bash
Executable file
#!/bin/sh
|
|
#python manage.py dumpdata --format=xml redirects | xmllint --format -
|
|
python manage.py dumpdata --format=xml redirects | sed -e 's/<\/*object/\
|
|
&/g' -e 's/<field/\
|
|
&/g' -e 's/<\/django-objects/\
|
|
&/g'
|