branch | stable |
changeset 3689 | deb13e88e037 |
parent 3106 | 226da883d17a |
child 3720 | 5376aaadd16b |
child 3803 | 414bb8439002 |
--- a/web/formwidgets.py Thu Oct 15 18:43:04 2009 +0200 +++ b/web/formwidgets.py Thu Oct 15 20:29:21 2009 +0200 @@ -430,7 +430,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