From 02bf2707a30b9e8f66938b59f359066ada13f362 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 20 Oct 2011 10:49:01 +0200 Subject: [PATCH] update cached values in clips --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 5a8c7988..4a20d7cb 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -667,6 +667,8 @@ class Item(models.Model): s.wordsperminute = None s.popularity = self.accessed.aggregate(Sum('accessed'))['accessed__sum'] s.save() + #update cached values in clips + self.clips.all().update(director=s.director, year=s.title) def update_facets(self): for key in self.facet_keys + ['title']: