Restoroo/core/helpers/media.py

5 lines
88 B
Python
Raw Normal View History

2022-08-04 15:58:57 +00:00
import uuid
def uuid_path(instance, filename):
return f'{uuid.uuid4()}/{filename}'