hooks/syncschema.py
changeset 3431 6944a92c16f2
parent 3410 47832374cf14
child 3536 f6c9a5df80fb
--- a/hooks/syncschema.py	Wed Sep 23 12:31:55 2009 +0200
+++ b/hooks/syncschema.py	Wed Sep 23 13:41:18 2009 +0200
@@ -871,7 +871,7 @@
 
     def __call__(self):
         name = self.entity.name
-        if name in CORE_ETYPES:
+        if name in CORE_RTYPES:
             raise ValidationError(self.entity.eid, {None: self._cw._('can\'t be deleted')})
         # delete relation definitions using this relation type
         self._cw.execute('DELETE CWAttribute X WHERE X relation_type Y, Y eid %(x)s',