web/form.py
branchtls-sprint
changeset 1049 f8e92c2f3bef
parent 1048 2a93712a6f8b
child 1050 c9815bef16d7
--- a/web/form.py	Wed Mar 11 11:15:59 2009 +0100
+++ b/web/form.py	Wed Mar 11 11:16:48 2009 +0100
@@ -912,7 +912,7 @@
     def form_field_entity_value(self, field, default_initial=True):
         attr = field.name 
         if field.role == 'object':
-            attr += '_object'
+            attr = 'reverse_' + attr
         else:
             attrtype = self.entity.e_schema.destination(attr)
             if attrtype == 'Password':