default values for ssaturation/brightness

This commit is contained in:
j 2010-12-25 19:29:21 +05:30
parent 1f4d6e546f
commit c99bec21a8

View file

@ -572,6 +572,9 @@ class Item(models.Model):
s.size = 0 s.size = 0
s.color = int(sum(self.data.get('color', []))) s.color = int(sum(self.data.get('color', [])))
s.saturation = 0 #FIXME
s.brightness = 0 #FIXME
s.cuts = len(self.data.get('cuts', [])) s.cuts = len(self.data.get('cuts', []))
if s.duration: if s.duration:
s.cutsperminute = s.cuts / (s.duration/60) s.cutsperminute = s.cuts / (s.duration/60)