move static and files

This commit is contained in:
j 2010-11-06 17:14:40 +01:00
commit aeaa875608
21 changed files with 29 additions and 14 deletions

View file

@ -278,7 +278,13 @@ class Frame(models.Model):
position = models.FloatField()
frame = models.ImageField(default=None, null=True, upload_to=frame_path)
#FIXME: frame path should be renamed on save to match current position
'''
def save(self, *args, **kwargs):
name = "%d.jpg" % self.position
if file.name != name:
#FIXME: frame path should be renamed on save to match current position
super(Frame, self).save(*args, **kwargs)
'''
def __unicode__(self):
return u'%s at %s' % (self.file, self.position)