diff --git a/lodel/leapi/datahandlers/references.py b/lodel/leapi/datahandlers/references.py index e6460fd..ca2d002 100644 --- a/lodel/leapi/datahandlers/references.py +++ b/lodel/leapi/datahandlers/references.py @@ -59,6 +59,7 @@ class List(MultipleRef): query_filters = list() query_filters.append((br_class.uid_fieldname()[0], '=', br_id)) br_obj = br_class.get(query_filters) + # if br_obj.__class__ not in if len(br_obj) == 0: raise ValueError("Not existing instance of class %s in back_reference" % br_class.__name__) br_list = br_obj.data(self.back_reference()[1]) diff --git a/plugins/webui/templates/admin/editable_component.html b/plugins/webui/templates/admin/editable_component.html index 747f8cc..71386ac 100644 --- a/plugins/webui/templates/admin/editable_component.html +++ b/plugins/webui/templates/admin/editable_component.html @@ -12,7 +12,7 @@ {% endif %} {% if field.directly_editable %} - {% set l_classe = field.l_classes %} + {% set l_classe = field.allowed_classes %}
Please enter uids to instances of {{ l_classe.__name__ }} separated by commas
{% else %}