branch | stable |
changeset 6017 | 5f6a60ea8544 |
parent 5940 | 0e3ae19b181a |
child 6101 | 1aff7367a20c |
--- a/web/views/autoform.py Tue Jul 27 09:14:00 2010 +0200 +++ b/web/views/autoform.py Tue Jul 27 09:40:09 2010 +0200 @@ -443,7 +443,8 @@ for rschema, role, related in field.relations_table(form): # already linked entities if related: - w(u'<tr><th class="labelCol">%s</th>' % rschema.display_name(req, role)) + label = rschema.display_name(req, role, context=form.edited_entity.__regid__) + w(u'<tr><th class="labelCol">%s</th>' % label) w(u'<td>') w(u'<ul>') for viewparams in related: