fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed upload.
[redakcja.git]
/
apps
/
explorer
/
views.py
diff --git
a/apps/explorer/views.py
b/apps/explorer/views.py
index
d2ba7f7
..
cb6988a
100644
(file)
--- a/
apps/explorer/views.py
+++ b/
apps/explorer/views.py
@@
-71,7
+71,7
@@
def file_upload(request, repo):
def upload_action():
print 'Adding file: %s' % f.name
- repo._add_file(f.name,
f.read().decode('utf-8')
)
+ repo._add_file(f.name,
decoded
)
repo._commit(
message="File %s uploaded from platform by %s" %\
(f.name, request.user.username), \