|
@@ -32,7 +32,7 @@ class EmFieldType(ReferenceFieldType):
|
32
|
32
|
cur_value = int(cur_value)
|
33
|
33
|
except (ValueError, TypeError) as e:
|
34
|
34
|
raise e # Raise Here !?
|
35
|
|
- if cur_value.is_leobject():
|
|
35
|
+ if hasattr(cur_value, 'is_leobject') and cur_value.is_leobject():
|
36
|
36
|
# Its an object not populated (we dont now its type)
|
37
|
37
|
cur_value = cur_value.lodel_id #Optimize here giving only class_id and type_id to populate ?
|
38
|
38
|
if isinstance(cur_value, int):
|