summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-06-25 11:26:39 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-06-25 11:26:39 +0200
commit3151068b458f46bba67a49ea3688c7789e728faf (patch)
treeae0e359f469afa8037babc036af244b1cdbd7ab3 /ishtar_common/models.py
parent525e57c74d876689dc4ca3aabc324a07cddb41fb (diff)
parentcde72747458d0639f4b037b9e6a486a7e63c88bf (diff)
downloadIshtar-3151068b458f46bba67a49ea3688c7789e728faf.tar.bz2
Ishtar-3151068b458f46bba67a49ea3688c7789e728faf.zip
Merge branch 'stable'
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index aa055adab..2d723b60a 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1271,6 +1271,7 @@ TARGET_MODELS = [
('Format', _(u"Format")),
('archaeological_operations.models.OperationType', _(u"Operation type")),
('archaeological_operations.models.Period', _(u"Period")),
+ ('archaeological_context_records.models.Unit', _(u"Unit")),
]
TARGET_MODELS_KEYS = [tm[0] for tm in TARGET_MODELS]
@@ -1335,6 +1336,7 @@ class FormaterType(models.Model):
kwargs['many_split'] = self.many_split
if self.formater_type == 'TypeFormater':
if self.options not in TARGET_MODELS_KEYS:
+ print('%s not in TARGET_MODELS_KEYS' % self.options)
return
model = None
if self.options in dir():