Sfoglia il codice sorgente

Fix Media path

master
tr4ck3ur des JM2L 9 anni fa
parent
commit
4de7407e03
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      jm2l/models.py

+ 2
- 1
jm2l/models.py Vedi File

@@ -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 """


Caricamento…
Annulla
Salva