From 600191f43fd124efdad62474465c203c6294d3e7 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 29 Oct 2011 19:32:44 +0200 Subject: [PATCH] one more index --- pandora/clip/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pandora/clip/models.py b/pandora/clip/models.py index 1d3e54d0..4dfe35f3 100644 --- a/pandora/clip/models.py +++ b/pandora/clip/models.py @@ -27,12 +27,11 @@ class Clip(models.Model): item = models.ForeignKey('item.Item', related_name='clips') #seconds - start = models.FloatField(default=-1) + start = models.FloatField(default=-1, db_index=True) end = models.FloatField(default=-1) - duration = models.FloatField(default=0) + duration = models.FloatField(default=0, db_index=True) #get from annotation - duration = models.FloatField(default=0, db_index=True) hue = models.FloatField(default=0, db_index=True) saturation = models.FloatField(default=0, db_index=True) lightness = models.FloatField(default=0, db_index=True)