diff options
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/models.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 5b21a9a49..f22600d12 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1738,7 +1738,8 @@ def import_class(full_path_classname):      mods = full_path_classname.split('.')      if len(mods) == 1:          mods = ['ishtar_common', 'models', mods[0]] -    elif 'models' not in mods: +    elif 'models' not in mods and 'models_finds' not in mods \ +            and 'models_treatments' not in mods:          raise SuspiciousOperation(              u"Try to import a non model from a string")      module = import_module('.'.join(mods[:-1])) | 
