add manage command to rebuild cache, only update cache after updating sort values

This commit is contained in:
j 2011-01-06 12:23:35 +05:30
commit fa623dc0b0
6 changed files with 41 additions and 6 deletions

View file

@ -5,6 +5,7 @@ from __future__ import division, with_statement
from django.db import models
from django.contrib.auth.models import User
from ox.django.fields import DictField
class List(models.Model):
@ -16,6 +17,9 @@ class List(models.Model):
user = models.ForeignKey(User)
name = models.CharField(max_length=255)
public = models.BooleanField(default=False)
query = DictField(default={})
items = models.ManyToManyField('item.Item', related_name='lists',
through='ListItem')