fix files/archive conflict, move item files to data/media, rename api from *File(s) to *Media

This commit is contained in:
j 2013-03-25 12:57:20 +00:00
commit 5c995553c9
8 changed files with 292 additions and 28 deletions

View file

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