diff options
| author | Paolo Melchiorre <paolo@melchiorre.org> | 2020-05-15 09:40:42 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-15 11:30:28 +0200 |
| commit | 0e3b0da2e3ecee05e8b5eee763f444c94280dbcb (patch) | |
| tree | bdc8b0c5523a6ae0bf4631be1eca4068ed2e17c4 /docs | |
| parent | 2e48cf6bd9499f888a6cebf9f18c92717f1df55c (diff) | |
Fixed #31552 -- Added support for LZMA and XZ fixtures to loaddata.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 13 | ||||
| -rw-r--r-- | docs/releases/3.2.txt | 3 |
2 files changed, 11 insertions, 5 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 329cb72215..4cd477b7a8 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -599,13 +599,14 @@ The :djadmin:`dumpdata` command can be used to generate input for ``loaddata``. Compressed fixtures ~~~~~~~~~~~~~~~~~~~ -Fixtures may be compressed in ``zip``, ``gz``, or ``bz2`` format. For example:: +Fixtures may be compressed in ``zip``, ``gz``, ``bz2``, ``lzma``, or ``xz`` +format. For example:: django-admin loaddata mydata.json -would look for any of ``mydata.json``, ``mydata.json.zip``, -``mydata.json.gz``, or ``mydata.json.bz2``. The first file contained within a -zip-compressed archive is used. +would look for any of ``mydata.json``, ``mydata.json.zip``, ``mydata.json.gz``, +``mydata.json.bz2``, ``mydata.json.lzma``, or ``mydata.json.xz``. The first +file contained within a compressed archive is used. Note that if two fixtures with the same name but different fixture type are discovered (for example, if ``mydata.json`` and @@ -619,6 +620,10 @@ installation will be aborted, and any data installed in the call to constraints, so if you use MyISAM, you won't get validation of fixture data, or a rollback if multiple transaction files are found. +.. versionchanged:: 3.2 + + Support for XZ archives (``.xz``) and LZMA archives (``.lzma``) was added. + Database-specific fixtures ~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt index 18b1df2836..4ba20c4c09 100644 --- a/docs/releases/3.2.txt +++ b/docs/releases/3.2.txt @@ -154,7 +154,8 @@ Logging Management Commands ~~~~~~~~~~~~~~~~~~~ -* ... +* :djadmin:`loaddata` now supports fixtures stored in XZ archives (``.xz``) and + LZMA archives (``.lzma``). Migrations ~~~~~~~~~~ |
