move file data
This commit is contained in:
parent
a12e207a28
commit
e8e6bb1926
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ def parse_decimal(string):
|
||||||
|
|
||||||
def file_path(f, name):
|
def file_path(f, name):
|
||||||
h = f.oshash
|
h = f.oshash
|
||||||
return os.path.join('file', h[:2], h[2:4], h[4:6], h[6:], name)
|
return os.path.join('files', h[:2], h[2:4], h[4:6], h[6:], name)
|
||||||
|
|
||||||
class File(models.Model):
|
class File(models.Model):
|
||||||
created = models.DateTimeField(auto_now_add=True)
|
created = models.DateTimeField(auto_now_add=True)
|
||||||
|
|
Loading…
Reference in a new issue