diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-13 10:42:58 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-13 10:42:58 +0200 |
commit | 2ac0935955c0f9ecd25f9dfe5d25b74aa039a2a9 (patch) | |
tree | 0e2a2e7f9596c0680ca405a22cafff0ff2a8690d /Makefile.example | |
parent | fe2a90c4b543706408e3991626711e50b9fb6b26 (diff) | |
download | Ishtar-2ac0935955c0f9ecd25f9dfe5d25b74aa039a2a9.tar.bz2 Ishtar-2ac0935955c0f9ecd25f9dfe5d25b74aa039a2a9.zip |
Fixtures: two times fixtures for relation types with no relation between them at first time
Diffstat (limited to 'Makefile.example')
-rw-r--r-- | Makefile.example | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.example b/Makefile.example index 2529c56f4..84325806b 100644 --- a/Makefile.example +++ b/Makefile.example @@ -158,9 +158,14 @@ fixtures_operations: archaeological_operations.acttype \ archaeological_operations.period \ archaeological_operations.remaintype \ - archaeological_operations.relationtype \ archaeological_operations.reportstate \ > '../archaeological_operations/fixtures/initial_data-'$(default_data)'.json' + cd $(project); $(PYTHON) ./manage.py dumpdata --indent 4 --natural-primary --natural-foreign \ + archaeological_operations.relationtype \ + > '../archaeological_operations/fixtures/initial_data_relation_type-'$(default_data)'.json' + cat archaeological_operations/fixtures/initial_data_relation_type-$(default_data).json | tr '\n' '\r' | \ + sed -e 's/"inverse_relation": *\[\r *\"[-_a-z0-9]*\" *\r *\]/"inverse_relation": null/g' | \ + tr '\r' '\n' > archaeological_operations/fixtures/initial_data_relation_type_norel-'$(default_data)'.json fixtures_context_records: cd $(project); $(PYTHON) ./manage.py dumpdata --indent 4 --natural-primary --natural-foreign \ @@ -169,10 +174,15 @@ fixtures_context_records: archaeological_context_records.identificationtype \ archaeological_context_records.unit \ archaeological_context_records.datingtype \ - archaeological_context_records.relationtype \ archaeological_context_records.excavationtechnictype \ archaeological_context_records.documentationtype \ > '../archaeological_context_records/fixtures/initial_data-'$(default_data)'.json' + cd $(project); $(PYTHON) ./manage.py dumpdata --indent 4 --natural-primary --natural-foreign \ + archaeological_context_records.relationtype \ + > '../archaeological_context_records/fixtures/initial_data_relation_type-'$(default_data)'.json' + cat archaeological_context_records/fixtures/initial_data_relation_type-$(default_data).json | tr '\n' '\r' | \ + sed -e 's/"inverse_relation": *\[\r *\"[-_a-z0-9]*\" *\r *\]/"inverse_relation": null/g' | \ + tr '\r' '\n' > archaeological_context_records/fixtures/initial_data_relation_type_norel-'$(default_data)'.json fixtures_finds: cd $(project); $(PYTHON) ./manage.py dumpdata --indent 4 --natural-primary --natural-foreign \ |