hooks/integrity.py
changeset 4024 6a14cff373c3
parent 4023 eae23c40627a
child 4027 02273e65e1c2
--- a/hooks/integrity.py	Tue Dec 08 10:58:56 2009 +0100
+++ b/hooks/integrity.py	Tue Dec 08 11:12:42 2009 +0100
@@ -182,8 +182,7 @@
         entity = self.entity
         eschema = entity.e_schema
         for attr in entity.edited_attributes:
-            if eschema.subject_relation(attr).final and \
-                   eschema.has_unique_values(attr):
+            if eschema.subjrels[attr].final and eschema.has_unique_values(attr):
                 val = entity[attr]
                 if val is None:
                     continue