Commits

Waldemar Kornewald  committed ea52bc3

fixed default backends

  • Participants
  • Parent commits 5383678

Comments (0)

Files changed (2)

File filetransfers/api.py

 import mimetypes
 
 UPLOAD_BACKEND = getattr(settings, 'FILETRANSFERS_UPLOAD_BACKEND',
-                         __name__ + '.backends.default.prepare_upload')
+                         'filetransfers.backends.default.prepare_upload')
 DOWNLOAD_BACKEND = getattr(settings, 'FILETRANSFERS_DOWNLOAD_BACKEND',
-                           __name__ + '.backends.default.serve_file')
+                           'filetransfers.backends.default.serve_file')
 
 _backends_cache = {}
 

File filetransfers/backends/default.py

 from django.http import HttpResponse
 from django.utils.encoding import smart_str
 
-def simple_upload_url(request, url):
+def prepare_upload(request, url):
     return url
 
 def serve_file(request, file, save_as, content_type):