From 6a220b0ed7d874876b6a64c9e297af2da0d303de Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 14 Jun 2011 16:23:30 +0200 Subject: [PATCH 1/1] fix --- apps/archive/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')) -- 2.20.1