diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-05-13 10:50:16 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-05-13 10:50:16 +0200 |
commit | 056947701cf49777695b379089fe134bef9678f7 (patch) | |
tree | a83ea9573f25dcf9990227b371dc9e65fe9bb6c7 | |
parent | 48e99e5f0a72e54757258330dbac79cb2c990a6e (diff) | |
download | Ishtar-056947701cf49777695b379089fe134bef9678f7.tar.bz2 Ishtar-056947701cf49777695b379089fe134bef9678f7.zip |
Fixtures: add regexp to import fixture
-rw-r--r-- | Makefile.example | 1 | ||||
-rw-r--r-- | ishtar_common/fixtures/initial_importtypes-fr.json | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.example b/Makefile.example index be9dbdedf..c18917319 100644 --- a/Makefile.example +++ b/Makefile.example @@ -110,6 +110,7 @@ fixtures_common: fixtures_common_importers fixtures_common_importers: cd $(project); $(PYTHON) ./manage.py dumpdata --indent 4 \ ishtar_common.importertype \ + ishtar_common.regexp \ ishtar_common.importerdefault \ ishtar_common.importerdefaultvalues \ ishtar_common.importercolumn \ diff --git a/ishtar_common/fixtures/initial_importtypes-fr.json b/ishtar_common/fixtures/initial_importtypes-fr.json index 77935731f..1d33a49fd 100644 --- a/ishtar_common/fixtures/initial_importtypes-fr.json +++ b/ishtar_common/fixtures/initial_importtypes-fr.json @@ -34,6 +34,24 @@ }, { "pk": 1, + "model": "ishtar_common.regexp", + "fields": { + "regexp": "([A-Za-z]*)([0-9]*)", + "name": "Parcelle : secteur et num\u00e9ro", + "description": "" + } + }, + { + "pk": 2, + "model": "ishtar_common.regexp", + "fields": { + "regexp": "([0-9]*)", + "name": "Num\u00e9ro INSEE", + "description": "" + } + }, + { + "pk": 1, "model": "ishtar_common.importerdefault", "fields": { "importer_type": 1, |