fix count

This commit is contained in:
j 2014-05-26 14:01:40 +02:00
parent 055c44443e
commit 8e7bb8815c
1 changed files with 1 additions and 1 deletions

View File

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