forked from rc/aircox
styling
This commit is contained in:
@ -100,7 +100,7 @@ class Sound(models.Model):
|
||||
def _upload_to(self, filename):
|
||||
subdir = AIRCOX_SOUND_ARCHIVES_SUBDIR if self.type == self.TYPE_ARCHIVE else \
|
||||
AIRCOX_SOUND_EXCERPTS_SUBDIR
|
||||
return os.path.join(o.program.path, subdir, filename)
|
||||
return os.path.join(self.program.path, subdir, filename)
|
||||
|
||||
file = models.FileField(
|
||||
_('file'), upload_to=_upload_to
|
||||
|
Reference in New Issue
Block a user