Změna jmen uploadovaných souborů
This commit is contained in:
parent
cea3eee7b5
commit
86311461c6
1 changed files with 1 additions and 1 deletions
|
@ -988,7 +988,7 @@ def aux_generate_filename(self, filename):
|
||||||
unidecode(filename.replace('/', '-').replace('\0', ''))
|
unidecode(filename.replace('/', '-').replace('\0', ''))
|
||||||
)
|
)
|
||||||
datedir = timezone.now().strftime('%Y-%m')
|
datedir = timezone.now().strftime('%Y-%m')
|
||||||
fname = "{}_{}".format(
|
fname = "{}/{}".format(
|
||||||
timezone.now().strftime('%Y-%m-%d-%H:%M'),
|
timezone.now().strftime('%Y-%m-%d-%H:%M'),
|
||||||
clean)
|
clean)
|
||||||
return os.path.join(datedir, fname)
|
return os.path.join(datedir, fname)
|
||||||
|
|
Loading…
Reference in a new issue