mirror of
https://github.com/yweber/lodel2.git
synced 2025-11-29 00:16:54 +01:00
Small corrections
This commit is contained in:
parent
37f7d2a3dd
commit
fee8dfdb68
2 changed files with 2 additions and 1 deletions
|
|
@ -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])
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
{% endif %}
|
||||
{% if field.directly_editable %}
|
||||
<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>
|
||||
{% else %}
|
||||
<input id="{{fieldname}}" name="field_input_{{fieldname}}" type="text" value="{{sval}}" readonly >
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue