cubicweb/server/edition.py
changeset 12297 38058ce2a9ec
parent 11767 432f87a63057
equal deleted inserted replaced
12295:e08d8e171238 12297:38058ce2a9ec
   153 
   153 
   154     def clone(self):
   154     def clone(self):
   155         thecopy = EditedEntity(copy(self.entity))
   155         thecopy = EditedEntity(copy(self.entity))
   156         thecopy.entity.cw_attr_cache = copy(self.entity.cw_attr_cache)
   156         thecopy.entity.cw_attr_cache = copy(self.entity.cw_attr_cache)
   157         thecopy.entity._cw_related_cache = {}
   157         thecopy.entity._cw_related_cache = {}
       
   158         thecopy.entity._cw_adapters_cache = {}
   158         thecopy.update(self, skipsec=False)
   159         thecopy.update(self, skipsec=False)
   159         return thecopy
   160         return thecopy