From fee8dfdb680ab30861c08929c6b294435b3856e8 Mon Sep 17 00:00:00 2001 From: prieto Date: Thu, 25 Aug 2016 08:51:17 +0200 Subject: [PATCH] Small corrections --- lodel/leapi/datahandlers/references.py | 1 + plugins/webui/templates/admin/editable_component.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 %}