diff -r 0eabedcfb0a9 -r 5f6a60ea8544 web/views/autoform.py --- 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'%s' % rschema.display_name(req, role)) + label = rschema.display_name(req, role, context=form.edited_entity.__regid__) + w(u'%s' % label) w(u'') w(u'