diff options
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 |
commit | 050f9dcaa43f5a613005c99d92288e85fda9bb95 (patch) | |
tree | ae0e359f469afa8037babc036af244b1cdbd7ab3 /ishtar_common/models.py | |
parent | 9c7c7c009d4913b7af1a404d1a1f56bc128ce05c (diff) | |
parent | d5b369ec8841a6bbffc4caf44dc90743c96bb18c (diff) | |
download | Ishtar-050f9dcaa43f5a613005c99d92288e85fda9bb95.tar.bz2 Ishtar-050f9dcaa43f5a613005c99d92288e85fda9bb95.zip |
Merge branch 'stable'
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 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(): |