Skip to content

Commit

Permalink
[Backport] Enhancement#4356: Add gzipped dumps import support
Browse files Browse the repository at this point in the history
  • Loading branch information
jespino authored and superalex committed Jun 28, 2016
1 parent 63a3b57 commit b6839a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Changelog #


## 2.1.0 Ursus Americanus (2016-05-03)

### Features
Expand Down
3 changes: 3 additions & 0 deletions taiga/export_import/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ def load_dump(self, request):
if not dump:
raise exc.WrongArguments(_("Needed dump file"))

if dump.content_type == "application/gzip":
dump = gzip.GzipFile(fileobj=dump)

reader = codecs.getreader("utf-8")

try:
Expand Down

0 comments on commit b6839a9

Please sign in to comment.