fix files/archive conflict, move item files to data/media, rename api from *File(s) to *Media
This commit is contained in:
parent
8f7a2094cd
commit
5c995553c9
8 changed files with 292 additions and 28 deletions
|
|
@ -218,7 +218,7 @@ class File(models.Model):
|
|||
|
||||
def get_path(self, name):
|
||||
h = self.oshash
|
||||
return os.path.join('files', h[:2], h[2:4], h[4:6], h[6:], name)
|
||||
return os.path.join('media', h[:2], h[2:4], h[4:6], h[6:], name)
|
||||
|
||||
def contents(self):
|
||||
if self.data != None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue