Skip to content

Commit 6b5cd68

Browse files
committed
Update file_extension.py
1 parent c4e774a commit 6b5cd68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

home/templatetags/file_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ def file_extension(value):
1212

1313
@register.filter
1414
def encoded_file_path(path):
15-
return path.replace('/', '%slash%')
15+
return path.replace(os.sep, '%slash%')

0 commit comments

Comments
 (0)