From d953debf09c75bfa64a21cdbd2c9597ae3dd258e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 20 Oct 2011 11:09:22 +0200 Subject: [PATCH] fix rebuildcache --- pandora/item/management/commands/rebuildcache.py | 1 + pandora/item/models.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/management/commands/rebuildcache.py b/pandora/item/management/commands/rebuildcache.py index 570b30af..95b03c3a 100644 --- a/pandora/item/management/commands/rebuildcache.py +++ b/pandora/item/management/commands/rebuildcache.py @@ -7,6 +7,7 @@ from os.path import join, dirname, basename, splitext, exists from django.core.management.base import BaseCommand, CommandError from django.conf import settings +import app.models from ... import models diff --git a/pandora/item/models.py b/pandora/item/models.py index 4a20d7cb..5112d0d6 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -668,7 +668,7 @@ class Item(models.Model): 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) + self.clips.all().update(director=s.director, title=s.title) def update_facets(self): for key in self.facet_keys + ['title']: