dumuzid/datastore/helpers/uploads.py

5 lines
99 B
Python
Raw Normal View History

2022-08-09 06:27:55 +00:00
import uuid
def get_upload_path(instance, filename):
2022-09-26 13:10:57 +00:00
return f"{str(uuid.uuid4())}/{filename}"