cubicweb/req.py
changeset 11765 9cb215e833b0
parent 11763 39df042f4ab4
child 11767 432f87a63057
--- a/cubicweb/req.py	Thu Oct 06 12:15:50 2016 +0200
+++ b/cubicweb/req.py	Sat Oct 01 11:56:27 2016 +0200
@@ -134,7 +134,7 @@
         """
         eid = int(eid)
         if etype is None:
-            etype = self.entity_metas(eid)['type']
+            etype = self.entity_type(eid)
         rset = ResultSet([(eid,)], 'Any X WHERE X eid %(x)s', {'x': eid},
                          [(etype,)])
         rset.req = self