fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
descriptions in catalogue
[redakcja.git]
/
src
/
fileupload
/
views.py
diff --git
a/src/fileupload/views.py
b/src/fileupload/views.py
index
56a198e
..
23fbc3b
100644
(file)
--- a/
src/fileupload/views.py
+++ b/
src/fileupload/views.py
@@
-98,7
+98,7
@@
class UploadView(FormView):
return super(UploadView, self).dispatch(request, *args, **kwargs)
def get(self, request, *args, **kwargs):
return super(UploadView, self).dispatch(request, *args, **kwargs)
def get(self, request, *args, **kwargs):
- if request.
is_ajax()
:
+ if request.
headers.get('x-requested-with') == 'XMLHttpRequest'
:
files = []
path = self.get_safe_path()
if os.path.isdir(path):
files = []
path = self.get_safe_path()
if os.path.isdir(path):