hooks/integrity.py
changeset 4003 b9436fe77c9e
parent 3998 94cc7cad3d2d
child 4023 eae23c40627a
--- a/hooks/integrity.py	Thu Dec 03 17:17:43 2009 +0100
+++ b/hooks/integrity.py	Mon Dec 07 05:09:09 2009 -0800
@@ -167,7 +167,7 @@
         entity = self.entity
         for attr in entity.edited_attributes:
             if schema.rschema(attr).final:
-                constraints = [c for c in entity.rdef(attr).constraints
+                constraints = [c for c in entity.e_schema.rdef(attr).constraints
                                if isinstance(c, (RQLUniqueConstraint, RQLConstraint))]
                 if constraints:
                     _CheckConstraintsOp(self._cw, constraints=constraints,