move static and files
This commit is contained in:
parent
86305e4c76
commit
aeaa875608
21 changed files with 29 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue