Skip to content
Snippets Groups Projects
Commit b07181fe authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Apply suggestion to aleksis/core/util/core_helpers.py

parent 6da05900
No related branches found
No related tags found
1 merge request!125Move path_and_rename to core_helpers.py and delete old helper.py
Pipeline #674 failed
......@@ -126,7 +126,7 @@ def celery_optional(orig: Callable) -> Callable:
def path_and_rename(instance, filename: str, upload_to: str = "files") -> str:
""" Updates path of an uploaded file while using in Django FileField """
""" Updates path of an uploaded file and renames it to a random UUID in Django FileField """
_, ext = os.path.splitext(filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment