entity.py
changeset 9635 aaf099172bb9
parent 9478 2d7521881d3d
parent 9591 5b8bc486d0dc
child 9712 6c6cd8c4b256
--- a/entity.py	Mon Apr 07 14:15:35 2014 +0200
+++ b/entity.py	Mon Apr 07 17:02:04 2014 +0200
@@ -788,13 +788,13 @@
             assert role in ('subject', 'object'), role
             skip_copy_for[role].add(rtype)
         for rschema in self.e_schema.subject_relations():
+            if rschema.type in skip_copy_for['subject']:
+                continue
             if rschema.final or rschema.meta:
                 continue
             # skip already defined relations
             if getattr(self, rschema.type):
                 continue
-            if rschema.type in skip_copy_for['subject']:
-                continue
             # skip composite relation
             rdef = self.e_schema.rdef(rschema)
             if rdef.composite: