app/soc/logic/models/document.py
changeset 1419 5d0f80ad7b9f
parent 1308 35b75ffcbb37
child 1517 a467d13e34ea
--- a/app/soc/logic/models/document.py	Sat Feb 21 00:45:19 2009 +0000
+++ b/app/soc/logic/models/document.py	Sat Feb 21 00:45:57 2009 +0000
@@ -23,6 +23,7 @@
 
 
 from soc.cache import sidebar
+from soc.cache import home
 from soc.logic.models import work
 from soc.logic.models import linkable as linkable_logic
 
@@ -67,6 +68,11 @@
     if (name == 'is_featured') and (entity.is_featured != value):
       sidebar.flush()
 
+    home_for = entity.home_for
+
+    if (name != 'home_for') and home_for:
+      home.flush(home_for)
+
     return True