From c99bec21a877d9605fa927af0669f196f40bd9e8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 25 Dec 2010 19:29:21 +0530 Subject: [PATCH] default values for ssaturation/brightness --- pandora/item/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index a17b470ab..4e5f707ce 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -572,6 +572,9 @@ class Item(models.Model): s.size = 0 s.color = int(sum(self.data.get('color', []))) + s.saturation = 0 #FIXME + s.brightness = 0 #FIXME + s.cuts = len(self.data.get('cuts', [])) if s.duration: s.cutsperminute = s.cuts / (s.duration/60)