server/edition.py
changeset 10997 da712d3f0601
parent 10903 da30851f9706
--- a/server/edition.py	Wed Dec 09 18:21:55 2015 +0100
+++ b/server/edition.py	Thu Dec 10 16:58:45 2015 +0100
@@ -106,6 +106,8 @@
         assert not self.saved, 'too late to modify edited attributes'
         super(EditedEntity, self).__setitem__(attr, value)
         self.entity.cw_attr_cache[attr] = value
+        if self.entity._cw.vreg.schema.rschema(attr).final:
+            self.entity._cw_dont_cache_attribute(attr)
 
     def oldnewvalue(self, attr):
         """returns the couple (old attr value, new attr value)