web/views/autoform.py
branchstable
changeset 7063 b07ee816bffb
parent 6725 6e6d1d19f341
child 7411 238da9684f99
--- a/web/views/autoform.py	Tue Mar 08 18:21:40 2011 +0100
+++ b/web/views/autoform.py	Wed Mar 09 12:24:50 2011 +0100
@@ -785,7 +785,8 @@
     def editable_attributes(self, strict=False):
         """return a list of (relation schema, role) to edit for the entity"""
         if self.display_fields is not None:
-            return self.display_fields
+            schema = self._cw.vreg.schema
+            return [(schema[rtype], role) for rtype, role in self.display_fields]
         if self.edited_entity.has_eid() and not self.edited_entity.cw_has_perm('update'):
             return []
         # XXX we should simply put eid in the generated section, no?