diff options
| author | Paolo Melchiorre <paolo@melchiorre.org> | 2021-01-12 15:47:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-12 15:47:58 +0100 |
| commit | c412d9af7e4121f6979758312c9426fa6893e9b7 (patch) | |
| tree | 0b35bb655ee53973ff690e4e230a3f458db41408 /docs | |
| parent | ba31b0103442ac891fb3cb98f316781254e366c3 (diff) | |
Fixed #32291 -- Added fixtures compression support to dumpdata.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 11 | ||||
| -rw-r--r-- | docs/releases/3.2.txt | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index b2c885431f..c916ff96c8 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -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`` --------- diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt index 45f42bc214..8796419c62 100644 --- a/docs/releases/3.2.txt +++ b/docs/releases/3.2.txt @@ -338,6 +338,9 @@ Management Commands * :djadmin:`loaddata` now supports fixtures stored in XZ archives (``.xz``) and LZMA archives (``.lzma``). +* :djadmin:`dumpdata` now can compress data in the ``bz2``, ``gz``, ``lzma``, + or ``xz`` formats. + * :djadmin:`makemigrations` can now be called without an active database connection. In that case, check for a consistent migration history is skipped. |
