From 926d6793e2c44b3f52f5741d313d8b3cfe012599 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 18 Aug 2011 20:19:09 +0200 Subject: [PATCH] upload bug --- pandora/archive/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora/archive/views.py b/pandora/archive/views.py index 367c457..041fbe7 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -198,8 +198,7 @@ def firefogg_upload(request): #404 if oshash is not know, files must be registered via update api first f = get_object_or_404(models.File, oshash=oshash) if f.editable(request.user): - if f.video: - f.video.delete() + f.streams.all().delete() f.available = False f.save() response = {