app/soc/logic/models/document.py
changeset 2427 0dee663d6582
parent 1669 47c1048fc4ef
--- a/app/soc/logic/models/document.py	Sat Jun 27 09:42:32 2009 +0200
+++ b/app/soc/logic/models/document.py	Sat Jun 27 22:11:48 2009 +0200
@@ -68,7 +68,10 @@
     return not entity.home_for
 
   def _updateField(self, entity, entity_properties, name):
-    """Special logic for role. If state changes to active we flush the sidebar.
+    """Special logic for Document.
+
+    - Flush the sidebar when a document is featured.
+    - Remove the document from the homepage cache when the home_for is updated
     """
 
     value = entity_properties[name]