From 0e6b51a4bb7d7e327b0bb99a1fee13cfecfdf9cf 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 6553b1f..08a06b7 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={})