From: Radek Czajka Date: Tue, 14 Jun 2011 14:23:30 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/6a220b0ed7d874876b6a64c9e297af2da0d303de?ds=inline fix --- diff --git a/apps/archive/models.py b/apps/archive/models.py index 81a8594..78c5ab3 100644 --- a/apps/archive/models.py +++ b/apps/archive/models.py @@ -1,6 +1,7 @@ from django.db import models from jsonfield.fields import JSONField from django.utils.translation import ugettext_lazy as _ +from archive.settings import FILES_PATH # Create your models here. @@ -21,7 +22,7 @@ class Project(models.Model): class Audiobook(models.Model): - source_file = models.FileField(upload_to='archive/files', verbose_name=_('source file'), editable=False) + source_file = models.FileField(upload_to=FILES_PATH, verbose_name=_('source file'), editable=False) title = models.CharField(max_length=255, verbose_name=_('title')) artist = models.CharField(max_length=255, verbose_name=_('artist'))