fix count

This commit is contained in:
j 2014-05-26 14:01:40 +02:00
parent 055c44443e
commit 8e7bb8815c

View file

@ -278,7 +278,7 @@ class List(db.Model):
def items_count(self): def items_count(self):
key = 'list:' + self.public_id key = 'list:' + self.public_id
value = state.cache.get(key) value = state.cache.get(key)
if key is None: if value is None:
from item.models import Item from item.models import Item
if self._query: if self._query:
data = self._query data = self._query