web/views/magicsearch.py
branchstable
changeset 3689 deb13e88e037
parent 3362 2a2dcfb379a0
child 3720 5376aaadd16b
child 4212 ab6573088b4a
--- a/web/views/magicsearch.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/web/views/magicsearch.py	Thu Oct 15 20:29:21 2009 +0200
@@ -278,7 +278,7 @@
         eschema = self.schema.eschema(etype)
         rtype = self._get_attribute_name(word2, eschema)
         # expand shortcut if rtype is a non final relation
-        if not self.schema.rschema(rtype).is_final():
+        if not self.schema.rschema(rtype).final:
             return self._expand_shortcut(etype, rtype, word3)
         if '%' in word3:
             searchop = 'LIKE '