From e26812bf5daab11adcec016945bca49da6bf436b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 30 Dec 2011 15:04:43 +0530 Subject: [PATCH] also update clips after import --- pandora/archive/management/commands/import_streams.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora/archive/management/commands/import_streams.py b/pandora/archive/management/commands/import_streams.py index 0b5a1a4f0..0abd0b729 100644 --- a/pandora/archive/management/commands/import_streams.py +++ b/pandora/archive/management/commands/import_streams.py @@ -55,3 +55,8 @@ class Command(BaseCommand): s.file.item.update_timeline() #make sure all derivatives exist s.extract_derivatives() + + #update clips + for c in s.file.item.clips.all(): + c.update_calculated_values() + c.save()