summaryrefslogtreecommitdiff
path: root/archaeological_operations/utils.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-01-25 14:18:36 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-01-25 14:18:36 +0100
commitedff76451ff472fa1af8e34ab72020662e89c12d (patch)
treef578525a6e776d44cd70af85c71d8b1976462718 /archaeological_operations/utils.py
parent61e47118daaf0eb4fb7d8f119e43fd91d5e0a8d1 (diff)
downloadIshtar-edff76451ff472fa1af8e34ab72020662e89c12d.tar.bz2
Ishtar-edff76451ff472fa1af8e34ab72020662e89c12d.zip
Archaeological operations: fix bad imports
Diffstat (limited to 'archaeological_operations/utils.py')
-rw-r--r--archaeological_operations/utils.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/archaeological_operations/utils.py b/archaeological_operations/utils.py
index fc01407ea..dcae8a3a8 100644
--- a/archaeological_operations/utils.py
+++ b/archaeological_operations/utils.py
@@ -17,8 +17,25 @@
# See the file COPYING for details.
+DELIMITER = ";"
+QUOTECHAR = '"'
+
+import datetime
+import csv, codecs
import re
+
from django.conf import settings
+from django.db import transaction
+from django.template.defaultfilters import slugify
+
+from django.contrib.auth.models import User
+from ishtar_common.models import Town, Person, PersonType, OrganizationType, \
+ Organization, SourceType
+from archaeological_files.models import PermitType, File, FileType
+from archaeological_operations.models import Operation, OperationType, Period, \
+ AdministrativeAct, ActType, OperationSource, Parcel
+
+DEFAULT_PERSON = User.objects.order_by('pk').all()[0]
def _get_parse_string(trunc_number=None):
def parse_string(value):