summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanislav Karpov <stkrp@yandex.ru>2015-07-28 16:07:41 (GMT)
committerStanislav Karpov <stkrp@yandex.ru>2015-07-28 16:07:41 (GMT)
commit96b89effe30755b307d80941b26830e5fcb94f1f (patch)
treee8a2094ee00f0bfab476e24b9dceef05f449cdd1
parenta2f4ca5f7d1517f0cd05cfc8bda38136b53aed7f (diff)
downloaddjango-ckeditor-96b89effe30755b307d80941b26830e5fcb94f1f.zip
django-ckeditor-96b89effe30755b307d80941b26830e5fcb94f1f.tar.gz
django-ckeditor-96b89effe30755b307d80941b26830e5fcb94f1f.tar.bz2
Update views.py
-rw-r--r--ckeditor/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ckeditor/views.py b/ckeditor/views.py
index 19c1e95..e8e8c36 100644
--- a/ckeditor/views.py
+++ b/ckeditor/views.py
@@ -116,10 +116,10 @@ def get_files_browse_urls(user=None):
files = []
for filename in get_image_files(user=user):
src = utils.get_media_url(filename)
+ visible_filename = None
if getattr(settings, 'CKEDITOR_IMAGE_BACKEND', None):
if is_image(src):
thumb = utils.get_media_url(utils.get_thumb_filename(filename))
- visible_filename = None
else:
thumb = utils.get_icon_filename(filename)
visible_filename = os.path.split(filename)[1]