[Backport] Enhancement#4356: Add gzipped dumps import support
parent
63a3b573af
commit
b6839a9505
|
@ -1,6 +1,5 @@
|
|||
# Changelog #
|
||||
|
||||
|
||||
## 2.1.0 Ursus Americanus (2016-05-03)
|
||||
|
||||
### Features
|
||||
|
|
|
@ -318,6 +318,9 @@ class ProjectImporterViewSet(mixins.ImportThrottlingPolicyMixin, CreateModelMixi
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue