Fix issue #37 - file uploading was not working as it should.

File uploading now works correctly from both the staff interface and from emails.
This commit is contained in:
Ross Poulton
2008-12-30 00:41:47 +00:00
parent a20ab36452
commit c8ce68e7b8
4 changed files with 23 additions and 31 deletions

View File

@ -276,7 +276,7 @@ def ticket_from_message(message, queue):
mime_type=file['type'],
size=len(file['content']),
)
a.file.save(file['filename'], ContentFile(file['content']))
a.file.save(file['filename'], ContentFile(file['content']), save=False)
a.save()
print " - %s" % file['filename']