Factor out the dump-rewrite sed script since creating pretty-printed
xml fixtures in general is a useful thing to do. - Legacy-Id: 817
This commit is contained in:
parent
63c532a175
commit
cb30cc8008
5
ietf/bin/pretty-xml-dump
Executable file
5
ietf/bin/pretty-xml-dump
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
python manage.py dumpdata --format=xml "$@" | sed -e 's/<\/*object/\
|
||||
&/g' -e 's/<field/\
|
||||
&/g' -e 's/<\/django-objects/\
|
||||
&/g'
|
Loading…
Reference in a new issue