fix rebuildcache
This commit is contained in:
parent
fcd12af35c
commit
d953debf09
2 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ from os.path import join, dirname, basename, splitext, exists
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
import app.models
|
||||||
from ... import models
|
from ... import models
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -668,7 +668,7 @@ class Item(models.Model):
|
||||||
s.popularity = self.accessed.aggregate(Sum('accessed'))['accessed__sum']
|
s.popularity = self.accessed.aggregate(Sum('accessed'))['accessed__sum']
|
||||||
s.save()
|
s.save()
|
||||||
#update cached values in clips
|
#update cached values in clips
|
||||||
self.clips.all().update(director=s.director, year=s.title)
|
self.clips.all().update(director=s.director, title=s.title)
|
||||||
|
|
||||||
def update_facets(self):
|
def update_facets(self):
|
||||||
for key in self.facet_keys + ['title']:
|
for key in self.facet_keys + ['title']:
|
||||||
|
|
Loading…
Reference in a new issue