summaryrefslogtreecommitdiff
path: root/archaeological_operations/management
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/management')
-rw-r--r--archaeological_operations/management/commands/import_operations.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/archaeological_operations/management/commands/import_operations.py b/archaeological_operations/management/commands/import_operations.py
index de64931a0..09bfe23b6 100644
--- a/archaeological_operations/management/commands/import_operations.py
+++ b/archaeological_operations/management/commands/import_operations.py
@@ -27,12 +27,13 @@ from archaeological_operations.data_importer import *
IMPORTERS = {
'bibracte-operation':OperationImporterBibracte,
'bibracte-parcelle':ParcelImporterBibracte,
+ 'bibracte-docs':DocImporterBibracte,
}
try:
from archaeological_context_records.data_importer import *
- IMPORTERS['bibracte-UE'] = ContextRecordsImporterBibracte
- IMPORTERS['bibracte-rel-UE'] = ContextRecordsRelationImporterBibracte
+ IMPORTERS['bibracte-ue'] = ContextRecordsImporterBibracte
+ IMPORTERS['bibracte-ue-rel'] = ContextRecordsRelationImporterBibracte
except ImportError:
pass
@@ -53,7 +54,7 @@ class Command(BaseCommand):
raise CommandError("No file provided.")
if len(args) < 2 or args[1] not in IMPORTERS:
msg = "Bad importer. \nAvailable importers are:\n"
- for key in IMPORTERS:
+ for key in sorted(IMPORTERS.keys()):
msg += "\t* %s: %s\n" % (key, IMPORTERS[key].DESC.encode('utf-8')
or "-")
raise CommandError(msg)