summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index dc700fb..888f0b8 100644
--- a/main/models.py
+++ b/main/models.py
@@ -325,4 +325,10 @@ class TodolistPkg(models.Model):
db_table = 'todolist_pkgs'
unique_together = (('list','pkg'),)
+# connect signals needed to keep cache in line with reality
+from main.utils import refresh_package_latest
+from django.db.models.signals import post_save
+post_save.connect(refresh_package_latest, sender=Package,
+ dispatch_uid="main.models")
+
# vim: set ts=4 sw=4 et: