changeset 3720 | 5376aaadd16b |
parent 3451 | 6b46d73823f5 |
parent 3689 | deb13e88e037 |
child 3890 | d7a270f50f54 |
--- a/web/formwidgets.py Thu Oct 15 11:20:26 2009 +0200 +++ b/web/formwidgets.py Mon Oct 19 15:16:41 2009 +0200 @@ -448,7 +448,7 @@ # XXX entity form specific entity = form.edited_entity attrs['cubicweb:etype_to'] = entity.e_schema - etype_from = entity.e_schema.subject_relation(field.name).objects(entity.e_schema)[0] + etype_from = entity.e_schema.subjrels[field.name].objects(entity.e_schema)[0] attrs['cubicweb:etype_from'] = etype_from return name, values, attrs