web/views/primary.py
changeset 6077 62011f82c386
parent 6067 efca814587e2
parent 6070 0ca78eb1a3c2
child 6089 b0975c6f2e44
--- a/web/views/primary.py	Wed Aug 04 11:16:40 2010 +0200
+++ b/web/views/primary.py	Fri Aug 06 17:49:20 2010 +0200
@@ -130,7 +130,7 @@
         display_attributes = []
         for rschema, _, role, dispctrl in self._section_def(entity, 'attributes'):
             vid = dispctrl.get('vid', 'reledit')
-            if rschema.final or vid == 'reledit':
+            if rschema.final or vid == 'reledit' or dispctrl.get('rtypevid'):
                 value = entity.view(vid, rtype=rschema.type, role=role)
             else:
                 rset = self._relation_rset(entity, rschema, role, dispctrl)