1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-29 08:26:55 +01:00

Small corrections

This commit is contained in:
prieto 2016-08-25 08:51:17 +02:00
commit fee8dfdb68
2 changed files with 2 additions and 1 deletions

View file

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

View file

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