update cached values in clips
This commit is contained in:
parent
0b30580e58
commit
02bf2707a3
1 changed files with 2 additions and 0 deletions
|
@ -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']:
|
||||
|
|
Loading…
Reference in a new issue