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
commit050f9dcaa43f5a613005c99d92288e85fda9bb95 (patch)
treeae0e359f469afa8037babc036af244b1cdbd7ab3 /ishtar_common/models.py
parent9c7c7c009d4913b7af1a404d1a1f56bc128ce05c (diff)
parentd5b369ec8841a6bbffc4caf44dc90743c96bb18c (diff)
downloadIshtar-050f9dcaa43f5a613005c99d92288e85fda9bb95.tar.bz2
Ishtar-050f9dcaa43f5a613005c99d92288e85fda9bb95.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():