Permalink
Browse files

Bug fix on tiff change

  • Loading branch information...
1 parent 32f4141 commit 5b241b5b02fcdea932fc4113202c18c595db1946 Keith committed Mar 1, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 athumb/fields.py
View
@@ -105,7 +105,9 @@ def save(self, name, content, save=True):
if self.field.tiff2png:
newcontent = self._convert_tiff_to_png(name, content)
newname = name.rsplit('.', 1)[0] + ".png"
- else: newcontent = content
+ else:
+ newcontent = content
+ newname = name
super(ImageWithThumbsFieldFile, self).save(newname, newcontent, save)
self.generate_thumbs(name, content)

0 comments on commit 5b241b5

Please sign in to comment.