Fixed #27881 -- Added diffsettings --output option.

Thanks Haris Ibrahim K. V. for writng docs.
This commit is contained in:
Chris Lamb 2017-03-08 08:54:17 +00:00 committed by Tim Graham
parent af1fa5e7da
commit 2f09a28558
4 changed files with 74 additions and 5 deletions

View file

@ -240,6 +240,16 @@ are prefixed by ``"###"``.
The settings module to compare the current settings against. Leave empty to
compare against Django's default settings.
.. django-admin-option:: --output {hash,unified}
.. versionadded:: 2.0
Specifies the output format. Available values are ``hash`` and ``unified``.
``hash`` is the default mode that displays the output that's described above.
``unified`` displays the output similar to ``diff -u``. Default settings are
prefixed with a minus sign, followed by the changed setting prefixed with a
plus sign.
``dumpdata``
------------