Commit 76155c91 authored by Michal Čihař's avatar Michal Čihař

Fix dictionary export with Django 1.8

The storage.savefile() does also close the output file, causing Django
1.8 to close the transaction preliminary leading to various strange
problems.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent b617d9ee
......@@ -231,7 +231,7 @@ def download_dictionary_ttkit(export_format, prj, lang, words):
store.addunit(unit)
# Save to response
store.savefile(response)
response.write(str(store))
return response
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment