entity.py
changeset 7152 39c1ffc7d93f
parent 7139 20807d3d7cf6
child 7153 7df83a6d17c0
--- a/entity.py	Thu Mar 31 09:39:51 2011 +0200
+++ b/entity.py	Thu Mar 31 15:23:46 2011 +0200
@@ -786,10 +786,10 @@
         if vocabconstraints:
             # RQLConstraint is a subclass for RQLVocabularyConstraint, so they
             # will be included as well
-            restriction += [cstr.restriction for cstr in rdef.constraints
+            restriction += [cstr.expression for cstr in rdef.constraints
                             if isinstance(cstr, RQLVocabularyConstraint)]
         else:
-            restriction += [cstr.restriction for cstr in rdef.constraints
+            restriction += [cstr.expression for cstr in rdef.constraints
                             if isinstance(cstr, RQLConstraint)]
         etypecls = self._cw.vreg['etypes'].etype_class(targettype)
         rql = etypecls.fetch_rql(self._cw.user, restriction,