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

Commit 0d5463a

Browse files
committed
invoke get_storage_class
1 parent 9e1ce66 commit 0d5463a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ckeditor_uploader/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_storage_class():
4040
'django.core.files.storage.DefaultStorage'))()
4141

4242

43-
storage = get_storage_class
43+
storage = get_storage_class()
4444

4545

4646
def slugify_filename(filename):

ckeditor_uploader/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def post(self, request, **kwargs):
8888
except utils.NotAnImageException:
8989
return HttpResponse("""
9090
<script type='text/javascript'>
91-
window.parent.CKEDITOR.tools.callFunction({0}, '', 'Invalid file type.');
91+
window.parent.CKEDITOR.tools.callFunction({0}, '',
92+
'Invalid file type.');
9293
</script>""".format(ck_func_num))
9394

9495
saved_path = self._save_file(request, uploaded_file)

0 commit comments

Comments
 (0)