Browse Source

Small corrections

prieto 8 years ago
parent
commit
fee8dfdb68

+ 1
- 0
lodel/leapi/datahandlers/references.py View File

@@ -59,6 +59,7 @@ class List(MultipleRef):
59 59
                 query_filters = list()
60 60
                 query_filters.append((br_class.uid_fieldname()[0], '=', br_id))
61 61
                 br_obj = br_class.get(query_filters)
62
+                # if br_obj.__class__ not in 
62 63
                 if len(br_obj) == 0:
63 64
                     raise ValueError("Not existing instance of class %s in back_reference" % br_class.__name__)
64 65
                 br_list = br_obj.data(self.back_reference()[1])

+ 1
- 1
plugins/webui/templates/admin/editable_component.html View File

@@ -12,7 +12,7 @@
12 12
         {% endif %}
13 13
         {% if field.directly_editable %}
14 14
             <input id="{{fieldname}}" name="field_input_{{fieldname}}" type="text" value="{{sval}}" >
15
-            {% set l_classe = field.l_classes %}
15
+            {% set l_classe = field.allowed_classes %}
16 16
             <p> Please enter uids to instances of {{ l_classe.__name__ }} separated by commas </p>
17 17
         {% else %}
18 18
             <input id="{{fieldname}}" name="field_input_{{fieldname}}" type="text" value="{{sval}}" readonly >

Loading…
Cancel
Save