diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 11:25:52 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 11:25:52 +0200 |
commit | cde72747458d0639f4b037b9e6a486a7e63c88bf (patch) | |
tree | 554f5393dd43550a803c1669ed349e89c1fc60be /ishtar_common/models.py | |
parent | 029eba4c18446c92636ccc1c36ef524a48cbbedf (diff) | |
download | Ishtar-cde72747458d0639f4b037b9e6a486a7e63c88bf.tar.bz2 Ishtar-cde72747458d0639f4b037b9e6a486a7e63c88bf.zip |
Import: fix unit import on MCC context record
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index a82638396..a57e814f0 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1258,6 +1258,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] @@ -1322,6 +1323,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(): |