diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-02-10 16:30:20 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-02-10 16:30:20 +0100 |
commit | 8de68c7d026348e85d5a5db859cb140117392c5e (patch) | |
tree | 22daa785cfca6275d21ede54b5873f8a84ee384b /archaeological_operations/data_importer.py | |
parent | a94f64d037f4b060a3fb25f0d601f48707cf66ba (diff) | |
download | Ishtar-8de68c7d026348e85d5a5db859cb140117392c5e.tar.bz2 Ishtar-8de68c7d026348e85d5a5db859cb140117392c5e.zip |
Fix OPERATOR on data importer (create when not available)
Diffstat (limited to 'archaeological_operations/data_importer.py')
-rw-r--r-- | archaeological_operations/data_importer.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archaeological_operations/data_importer.py b/archaeological_operations/data_importer.py index 4c75ba53d..cec4e8104 100644 --- a/archaeological_operations/data_importer.py +++ b/archaeological_operations/data_importer.py @@ -28,6 +28,7 @@ from ishtar_common.models import Town, OrganizationType, SourceType, \ SupportType, Format, AuthorType from archaeological_operations import models +from archaeological_operations.forms import OPERATOR from archaeological_operations.utils import parse_parcels RE_PERMIT_REFERENCE = re.compile('[A-Za-z]*(.*)') @@ -152,8 +153,8 @@ class OperationImporterBibracte(Importer): DESC = u"Exports Bibracte : importeur pour l'onglet opération" DEFAULTS = { ('operator',):{ - 'organization_type':OrganizationType.objects.get( - txt_idx="operator")}, + 'organization_type':OPERATOR + }, } LINE_FORMAT = [ # CODE OPE |