one more index

This commit is contained in:
j 2011-10-29 19:32:44 +02:00
parent c6f11433f9
commit 600191f43f

View file

@ -27,12 +27,11 @@ class Clip(models.Model):
item = models.ForeignKey('item.Item', related_name='clips') item = models.ForeignKey('item.Item', related_name='clips')
#seconds #seconds
start = models.FloatField(default=-1) start = models.FloatField(default=-1, db_index=True)
end = models.FloatField(default=-1) end = models.FloatField(default=-1)
duration = models.FloatField(default=0) duration = models.FloatField(default=0, db_index=True)
#get from annotation #get from annotation
duration = models.FloatField(default=0, db_index=True)
hue = models.FloatField(default=0, db_index=True) hue = models.FloatField(default=0, db_index=True)
saturation = models.FloatField(default=0, db_index=True) saturation = models.FloatField(default=0, db_index=True)
lightness = models.FloatField(default=0, db_index=True) lightness = models.FloatField(default=0, db_index=True)