Permalink
Browse files

pass 'allow_overwrite=True' to storage.move() when performing actions…

… on image
  • Loading branch information...
1 parent 25b9015 commit 9f85655b40e3967a9cd056bee8846700c19a12eb @igorsobreira igorsobreira committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 filebrowser/actions.py
@@ -42,7 +42,7 @@ def transpose_image(request, fileobjects, operation):
try:
saved_under = fileobject.site.storage.save(fileobject.path, tmpfile)
if saved_under != fileobject.path:
- fileobject.site.storage.move(saved_under, fileobject.path)
+ fileobject.site.storage.move(saved_under, fileobject.path, allow_overwrite=True)
fileobject.delete_versions()
finally:
tmpfile.close()

0 comments on commit 9f85655

Please sign in to comment.