fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cd69a08
)
Fixed upload.
author
Łukasz Rekucki
<lrekucki@gmail.com>
Fri, 4 Sep 2009 14:44:01 +0000
(16:44 +0200)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Fri, 4 Sep 2009 14:44:01 +0000
(16:44 +0200)
apps/explorer/views.py
patch
|
blob
|
history
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), \