Fixed #29026 -- Added --scriptable option to makemigrations.

This commit is contained in:
Jacob Walls 2021-08-06 09:59:53 -04:00 committed by Mariusz Felisiak
parent 274771df91
commit 6f78cb6b13
4 changed files with 74 additions and 3 deletions

View file

@ -825,6 +825,13 @@ Generate migration files without Django version and timestamp header.
Makes ``makemigrations`` exit with a non-zero status when model changes without
migrations are detected.
.. django-admin-option:: --scriptable
.. versionadded:: 4.1
Diverts log output and input prompts to ``stderr``, writing only paths of
generated migration files to ``stdout``.
``migrate``
-----------

View file

@ -210,6 +210,10 @@ Management Commands
* :option:`makemigrations --no-input` now logs default answers and reasons why
migrations cannot be created.
* The new :option:`makemigrations --scriptable` options diverts log output and
input prompts to ``stderr``, writing only paths of generated migration files
to ``stdout``.
Migrations
~~~~~~~~~~