Commit 16ed27c5 authored by Vlad Chursin's avatar Vlad Chursin

can't download with fileadmin from subdir under Windows

parent 0ef60dd5
......@@ -593,6 +593,9 @@ class BaseFileAdmin(BaseView, ActionsMixin):
:param path:
Static file path
"""
if self._on_windows:
path = path.replace('\\', '/')
if self.is_file_editable(path):
route = '.edit'
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment