entity.py
changeset 4460 5c22869079b9
parent 4451 65f4665233e6
child 4630 528dee042927
--- a/entity.py	Fri Feb 05 07:25:16 2010 +0100
+++ b/entity.py	Fri Feb 05 08:11:32 2010 +0100
@@ -785,7 +785,12 @@
         # clear relations cache
         for rschema, _, role in self.e_schema.relation_definitions():
             self.clear_related_cache(rschema.type, role)
-
+        # rest path unique cache
+        try:
+            del self.__unique
+        except AttributeError:
+            pass
+    
     # raw edition utilities ###################################################
 
     def set_attributes(self, _cw_unsafe=False, **kwargs):