changeset 11765 | 9cb215e833b0 |
parent 11366 | 80dec361a5d0 |
child 11767 | 432f87a63057 |
--- a/cubicweb/hooks/integrity.py Thu Oct 06 12:15:50 2016 +0200 +++ b/cubicweb/hooks/integrity.py Sat Oct 01 11:56:27 2016 +0200 @@ -87,7 +87,7 @@ if rtype in pendingrtypes: continue if not cnx.execute(self.base_rql % rtype, {'x': eid}): - etype = cnx.entity_metas(eid)['type'] + etype = cnx.entity_type(eid) msg = _('at least one relation %(rtype)s is required on ' '%(etype)s (%(eid)s)') raise validation_error(eid, {(rtype, self.role): msg},