From f0acbd2befb7e28d2ed5b8954047d652eb52bd72 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 12 May 2013 10:44:55 +0200 Subject: [PATCH] use .save not .update --- pandora/archive/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/archive/tasks.py b/pandora/archive/tasks.py index 304d407c1..583ca5084 100644 --- a/pandora/archive/tasks.py +++ b/pandora/archive/tasks.py @@ -92,7 +92,9 @@ def process_stream(fileId): models.File.objects.filter(id=fileId).update(encoding=True) stream.make_timeline() stream.extract_derivatives() - models.File.objects.filter(id=fileId).update(encoding=False) + file = models.File.objects.get(id=fileId) + file.encoding = False + file.save() file.item.update_selected() if not file.item.rendered: file.item.update_timeline()