academon/core/helpers/uploads.py

5 lines
97 B
Python
Raw Normal View History

2022-09-26 14:27:52 +00:00
import uuid
def get_upload_path(instance, filename):
return f"{str(uuid.uuid4)}/{filename}"