From 0cc24d09c9a01efc4977c0c75e0db72a8d7bf704 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 18 Aug 2011 20:57:56 +0200 Subject: [PATCH] fix upload name --- pandora/archive/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 6553b1f4..08a06b7c 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -468,7 +468,7 @@ class Stream(models.Model): resolution = models.IntegerField(default=96) format = models.CharField(max_length=255, default='webm') - video = models.FileField(default=None, blank=True, upload_to=lambda f, x: f.path()) + video = models.FileField(default=None, blank=True, upload_to=lambda f, x: f.path(x)) source = models.ForeignKey('Stream', related_name='derivatives', default=None, null=True) available = models.BooleanField(default=False) info = fields.DictField(default={})