dumuzid/datastore/helpers/uploads.py
2022-08-09 06:27:55 +00:00

5 lines
97 B
Python

import uuid
def get_upload_path(instance, filename):
return f"{str(uuid.uuid4)}/{filename}"