web/facet.py
changeset 6662 8862bf4a6dd4
parent 6623 4cb6d319d16d
child 6681 674461009c7c
--- a/web/facet.py	Fri Oct 29 00:03:48 2010 +0200
+++ b/web/facet.py	Tue Nov 02 08:14:29 2010 +0100
@@ -543,7 +543,7 @@
             eschema = self._cw.vreg.schema.rschema(self.rtype).objects()[0]
         else:
             eschema = self._cw.vreg.schema.rschema(self.rtype).subjects()[0]
-        return eschema.rdef(self.target_attr).internationalizable
+        return getattr(eschema.rdef(self.target_attr), 'internationalizable', False)
 
     @property
     def no_relation(self):