From 4de7407e035ce08cdb56decb874512508904bd88 Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Sun, 5 Apr 2015 15:27:50 +0200 Subject: [PATCH] Fix Media path --- jm2l/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jm2l/models.py b/jm2l/models.py index 481658b..78c712e 100644 --- a/jm2l/models.py +++ b/jm2l/models.py @@ -319,7 +319,8 @@ class Media(Base): @property def get_path(self): - return '/upload/%s/%s/%s' % (self.media_type, self.media_table, self.filename) + #return '/upload/%s/%s/%s' % (self.media_type, self.media_table, self.filename) + return '/resources/%s/%s/%s' % (self.for_year, self.media_type, self.filename) class SallePhy(Base): """ Représente une salle dans les locaux """