entity.py
changeset 10371 88577b10b31e
parent 10357 59a79300f213
child 10462 bd2a14d3de15
--- a/entity.py	Thu Feb 13 16:37:40 2014 +0100
+++ b/entity.py	Wed Feb 25 10:33:41 2015 +0100
@@ -425,7 +425,7 @@
         else:
             for rschema in cls.e_schema.subject_relations():
                 if (rschema.final
-                    and rschema != 'eid'
+                    and rschema not in ('eid', 'cwuri')
                     and cls.e_schema.has_unique_values(rschema)
                     and cls.e_schema.rdef(rschema.type).cardinality[0] == '1'):
                     mainattr = str(rschema)