This commit is contained in:
winkidney
2019-02-22 17:40:02 +08:00
committed by Ji Qu
parent fb79c2d671
commit 0d60075f28
10 changed files with 22 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
import hashlib
import os
def upload_path(instance, filename, **kwargs):
hasher = hashlib.md5()
for chunk in instance.image.chunks():