mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #22258 -- Added progress status for dumpdata when outputting to file
Thanks Gwildor Sok for the report and Tim Graham for the review.
This commit is contained in:
@@ -309,6 +309,12 @@ one model.
|
||||
|
||||
By default ``dumpdata`` will output all the serialized data to standard output.
|
||||
This option allows you to specify the file to which the data is to be written.
|
||||
When this option is set and the verbosity is greater than 0 (the default), a
|
||||
progress bar is shown in the terminal.
|
||||
|
||||
.. versionchanged:: 1.9
|
||||
|
||||
The progress bar in the terminal was added.
|
||||
|
||||
flush
|
||||
-----
|
||||
|
||||
@@ -364,6 +364,8 @@ Management Commands
|
||||
preceded by the operation's description.
|
||||
|
||||
* The :djadmin:`dumpdata` command output is now deterministically ordered.
|
||||
Moreover, when the ``--ouput`` option is specified, it also shows a progress
|
||||
bar in the terminal.
|
||||
|
||||
* The :djadmin:`createcachetable` command now has a ``--dry-run`` flag to
|
||||
print out the SQL rather than execute it.
|
||||
|
||||
Reference in New Issue
Block a user