Rafał Pitoń 8 years ago
parent
commit
9db0c1b4fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/threads/models/attachment.py

+ 1 - 1
misago/threads/models/attachment.py

@@ -86,4 +86,4 @@ class Attachment(models.Model):
 
 
         thumb_secret = get_random_string(settings.MISAGO_ATTACHMENT_SECRET_LENGTH)
         thumb_secret = get_random_string(settings.MISAGO_ATTACHMENT_SECRET_LENGTH)
         thumb_filename = '.'.join([thumb_secret, fileformat])
         thumb_filename = '.'.join([thumb_secret, fileformat])
-        self.thumbnail = ContentFile(thumb_stream.get_value(), thumb_filename)
+        self.thumbnail = ContentFile(thumb_stream.getvalue(), thumb_filename)