|
@@ -2,6 +2,7 @@
|
2
|
2
|
from lodel.leapi.datahandlers.field_data_handler import FieldDataHandler
|
3
|
3
|
from lodel.editorial_model.components import EmClass
|
4
|
4
|
|
|
5
|
+
|
5
|
6
|
class Reference(FieldDataHandler):
|
6
|
7
|
|
7
|
8
|
## @brief Instanciation
|
|
@@ -29,7 +30,7 @@ class Reference(FieldDataHandler):
|
29
|
30
|
|
30
|
31
|
if isinstance(value, dict):
|
31
|
32
|
ref_values = value.values()
|
32
|
|
-
|
|
33
|
+
|
33
|
34
|
for related in value:
|
34
|
35
|
if not isinstance(related, EmClass):
|
35
|
36
|
return (value, "The reference %s should be an instance of EmClass, %s gotten" % (related.display_name, related.__class__))
|