Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 17001d4

Browse files
author
vzagorovskiy
authored
Added casting _get_user_path result to a string
If you use non-string properties of user object get_upload_filename will be failed. e.g. CKEDITOR_RESTRICT_BY_USER='id'
1 parent 111f8a9 commit 17001d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ckeditor_uploader/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _get_user_path(user):
3434
else:
3535
user_path = user_prop
3636

37-
return user_path
37+
return str(user_path)
3838

3939

4040
def get_upload_filename(upload_name, user):

0 commit comments

Comments
 (0)