diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-30 17:03:13 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-30 17:03:13 +0200 |
commit | de50e3d4b26f90bc512613941f2d6a7378d0dd74 (patch) | |
tree | 76689796b25bead10c19139b2440e7295db7dd13 | |
parent | adca80243c2b33982248eb7a083c532e914bb708 (diff) | |
download | Ishtar-de50e3d4b26f90bc512613941f2d6a7378d0dd74.tar.bz2 Ishtar-de50e3d4b26f90bc512613941f2d6a7378d0dd74.zip |
Add a default source type
-rw-r--r-- | example_project/local_settings_nantes.py | 3 | ||||
-rw-r--r-- | example_project/settings.py | 2 | ||||
-rw-r--r-- | ishtar_common/fixtures/initial_data.json | 10 |
3 files changed, 13 insertions, 2 deletions
diff --git a/example_project/local_settings_nantes.py b/example_project/local_settings_nantes.py index 96d47a409..1b9b9a537 100644 --- a/example_project/local_settings_nantes.py +++ b/example_project/local_settings_nantes.py @@ -112,7 +112,8 @@ ISHTAR_PERMIT_TYPES = { ISHTAR_DOC_TYPES = { 'RF':u"Rapport final", - 'RI':u"Rapport intermédiaire" + 'RI':u"Rapport intermédiaire", + "undefined":u"Non précisé" } # attrs, convert[, relative col number, multi] diff --git a/example_project/settings.py b/example_project/settings.py index d856fcce5..bfb59fb5d 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -161,7 +161,7 @@ ISHTAR_OPE_TYPES = {} # DB key: txt_idx ISHTAR_PERIODS = {} ISHTAR_PERMIT_TYPES = {} -ISHTAR_DOC_TYPES = {} +ISHTAR_DOC_TYPES = {u"undefined":u"Undefined"} ISHTAR_DPTS = [] diff --git a/ishtar_common/fixtures/initial_data.json b/ishtar_common/fixtures/initial_data.json index ba7a1e155..977881119 100644 --- a/ishtar_common/fixtures/initial_data.json +++ b/ishtar_common/fixtures/initial_data.json @@ -278,5 +278,15 @@ "txt_idx": "thematic_survey_report", "label": "Rapport de prospection th\u00e9matique" } + }, + { + "pk": 10, + "model": "ishtar_common.sourcetype", + "fields": { + "comment": "", + "available": true, + "txt_idx": "undefined", + "label": "Non pr\u00e9cis\u00e9" + } } ] |