summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 51cf1096f..09ce9aba5 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1457,6 +1457,7 @@ IMPORTER_TYPES = (
('YearFormater', _(u"Year")),
('StrToBoolean', _(u"String to boolean")),
('FileFormater', pgettext_lazy("filesystem", u"File")),
+ ('UnknowType', _(u"Unknow type"))
)
IMPORTER_TYPES_DCT = {
@@ -1531,6 +1532,8 @@ class FormaterType(models.Model):
return DateFormater(self.options, **kwargs)
elif self.formater_type == 'StrToBoolean':
return StrToBoolean(**kwargs)
+ elif self.formater_type == 'UnknowType':
+ return
else:
return IMPORTER_TYPES_DCT[self.formater_type](**kwargs)