Browse Source

Fix Media path

master
tr4ck3ur des JM2L 9 years ago
parent
commit
4de7407e03
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      jm2l/models.py

+ 2
- 1
jm2l/models.py View File

@@ -319,7 +319,8 @@ class Media(Base):
@property @property
def get_path(self): 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): class SallePhy(Base):
""" Représente une salle dans les locaux """ """ Représente une salle dans les locaux """


Loading…
Cancel
Save