diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-03-10 19:13:23 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-03-10 19:13:23 +0100 |
commit | a8b790131dc09646b5bd67dab8e8a027478e2072 (patch) | |
tree | 46fc7f039c31942192935480055b5e31787427b9 /chimere/models.py | |
parent | 5d6cfee03d1d80f18f0c70ac9bcde39ba7e2605f (diff) | |
download | Chimère-a8b790131dc09646b5bd67dab8e8a027478e2072.tar.bz2 Chimère-a8b790131dc09646b5bd67dab8e8a027478e2072.zip |
Correct path problems
Diffstat (limited to 'chimere/models.py')
-rw-r--r-- | chimere/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chimere/models.py b/chimere/models.py index b367f8c..ee4688d 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -426,7 +426,7 @@ class MultimediaFile(models.Model): class PictureFile(models.Model): name = models.CharField(_(u"Name"), max_length=150, blank=True, null=True) - picture = models.ImageField(_(u"Image"), upload_to='upload', + picture = models.ImageField(_(u"Image"), upload_to='pictures', height_field='height', width_field='width') height = models.IntegerField(_(u"Height")) width = models.IntegerField(_(u"Width")) @@ -438,9 +438,9 @@ class PictureFile(models.Model): class RouteFile(models.Model): name = models.CharField(_(u"Name"), max_length=150) - raw_file = models.FileField(_(u"Raw file (gpx or kml)"), upload_to='upload') + raw_file = models.FileField(_(u"Raw file (gpx or kml)"), upload_to='route_files') simplified_file = models.FileField(_(u"Simplified file"), - upload_to='upload', blank=True, null=True) + upload_to='route_files', blank=True, null=True) TYPE = (('K', _(u'KML')), ('G', _(u'GPX'))) file_type = models.CharField(max_length=1, choices=TYPE) |