Fixed #32291 -- Added fixtures compression support to dumpdata.

This commit is contained in:
Paolo Melchiorre 2021-01-12 15:47:58 +01:00 committed by GitHub
parent ba31b01034
commit c412d9af7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 138 additions and 3 deletions

View file

@ -364,6 +364,17 @@ standard output.
When this option is set and ``--verbosity`` is greater than 0 (the default), a
progress bar is shown in the terminal.
Fixtures compression
~~~~~~~~~~~~~~~~~~~~
.. versionadded:: 3.2
The output file can be compressed with one of the ``bz2``, ``gz``, ``lzma``, or
``xz`` formats by ending the filename with the corresponding extension.
For example, to output the data as a compressed JSON file::
django-admin dumpdata -o mydata.json.gz
``flush``
---------