fix dumb name error
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 28 Sep 2009 16:39:10 +0200
changeset 3505 c0c7a944c00d
parent 3504 aadeab85af7c
child 3524 a3431f4e2f40
fix dumb name error
web/views/autoform.py
--- a/web/views/autoform.py	Mon Sep 28 16:07:18 2009 +0200
+++ b/web/views/autoform.py	Mon Sep 28 16:39:10 2009 +0200
@@ -188,8 +188,8 @@
         result = []
         for rschema, _, role in self._relations_by_section('relations',
                                                            strict=True):
-            result.append( (rschema.display_name(entity._cw, role,
-                                                 entity.__regid__),
+            result.append( (rschema.display_name(self.edited_entity._cw, role,
+                                                 self.edited_entity.__regid__),
                             rschema, role) )
         return sorted(result)