web/views/json.py
changeset 8900 010a59e12d89
parent 8694 d901c36bcfce
child 9492 c7fc56eecd1a
--- a/web/views/json.py	Tue Apr 23 15:16:36 2013 +0200
+++ b/web/views/json.py	Tue Apr 23 15:33:50 2013 +0200
@@ -114,7 +114,7 @@
             entity.complete() # fetch all attributes
             # hack to add extra metadata
             entity.cw_attr_cache.update({
-                    '__cwetype__': entity.__regid__,
+                    '__cwetype__': entity.cw_etype,
                     })
             entities.append(entity)
         self.wdata(entities)