kumify/common/helpers.py
2020-12-27 18:49:54 +01:00

4 lines
No EOL
142 B
Python

import uuid
def get_upload_path(instance, filename):
return 'usermedia/{0}/{1}/{2}'.format(instance.user.id, str(uuid.uuid4()), filename)