diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-02-23 15:32:40 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-05-06 16:04:02 +0200 |
commit | 5ddcf476ebc029084ec5d972e2a5b2eec713b9e7 (patch) | |
tree | 14c34492ed0534f0e77169700c3c336bc60f27d7 /archaeological_operations/data_importer.py | |
parent | e2007b7f320f2ce353cbd9005a0a3762e7f7e8f2 (diff) | |
download | Ishtar-5ddcf476ebc029084ec5d972e2a5b2eec713b9e7.tar.bz2 Ishtar-5ddcf476ebc029084ec5d972e2a5b2eec713b9e7.zip |
Data importer: multiple format for DateFormater - pre treatment for cutting too long strings
Diffstat (limited to 'archaeological_operations/data_importer.py')
-rw-r--r-- | archaeological_operations/data_importer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_operations/data_importer.py b/archaeological_operations/data_importer.py index 94bbdff7c..252fdcca0 100644 --- a/archaeological_operations/data_importer.py +++ b/archaeological_operations/data_importer.py @@ -170,9 +170,9 @@ class OperationImporterBibracte(Importer): # resp. lien IMPORT avec personne ImportFormater('in_charge__raw_name', UnicodeFormater(300),), # début - ImportFormater('start_date', DateFormater('%Y/%m/%d'),), + ImportFormater('start_date', DateFormater(['%Y/%m/%d']),), # fin - ImportFormater('excavation_end_date', DateFormater('%Y/%m/%d'),), + ImportFormater('excavation_end_date', DateFormater(['%Y/%m/%d']),), # Chronos ImportFormater('periods', TypeFormater(models.Period, many_split="&"), required=False), @@ -242,7 +242,7 @@ class DocImporterBibracte(Importer): # auteur ImportFormater('authors__person__raw_name', UnicodeFormater(300), required=False), # annee - ImportFormater('creation_date', DateFormater('%Y'),), + ImportFormater('creation_date', DateFormater(['%Y']),), # format ImportFormater('format_type', TypeFormater(Format), required=False), # description legende |