diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-30 10:23:12 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-30 10:23:12 +0100 |
commit | 11c428fdd9b68c8255f1aeb6890628425a5d8898 (patch) | |
tree | d81c85d1b433ed3c0a658f95b1841784789e7c8a /Makefile.example | |
parent | d71ab9b6f0efc1ec27cc4dcafdad1f3119a2566a (diff) | |
parent | 47743d97e01345b7e39a18541100a020f6cfd94d (diff) | |
download | Ishtar-11c428fdd9b68c8255f1aeb6890628425a5d8898.tar.bz2 Ishtar-11c428fdd9b68c8255f1aeb6890628425a5d8898.zip |
Merge branch 'develop' into develop-bootstrap
Diffstat (limited to 'Makefile.example')
-rw-r--r-- | Makefile.example | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.example b/Makefile.example index c3b40b6df..95e7121a2 100644 --- a/Makefile.example +++ b/Makefile.example @@ -143,11 +143,13 @@ fixtures_common_importers: > '../ishtar_common/fixtures/initial_importtypes-'$(default_data)'.json' fixtures_common_towns: - cd $(project); $(PYTHON) ./manage.py dumpdata --indent 4 \ - ishtar_common.state \ + cd $(project); $(PYTHON) ./manage.py dumpdata --indent 4 --natural-primary --natural-foreign \ ishtar_common.department \ ishtar_common.town \ - > '../ishtar_common/fixtures/initial_towns-'$(default_data)'.json' + > '../ishtar_common/fixtures/towns-'$(default_data)'.json' + cat 'ishtar_common/fixtures/towns-'$(default_data)'.json' | tr '\n' '\r' | \ + sed -e 's/"children": *\[\r *\[\r *"[0-9]*", *\r *[0-9]*\ *\r *\]\r *\]/"children": []/g' | \ + tr '\r' '\n' > 'ishtar_common/fixtures/towns_norel-'$(default_data)'.json' fixtures_spatialrefsystem: cd $(project); $(PYTHON) ./manage.py dumpdata --indent 4 --natural-primary --natural-foreign \ |