mirror of
https://github.com/leaders-of-digital-9-task/backend.git
synced 2024-11-28 20:23:44 +03:00
8 lines
177 B
Python
8 lines
177 B
Python
import os
|
|
|
|
from utils.generators import generate_charset
|
|
|
|
|
|
def media_upload_path(instance, filename):
|
|
return os.path.join(f"uploads/dicom/{generate_charset(7)}/", filename)
|