summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2021-08-06 09:59:53 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-01-10 18:49:57 +0100
commit6f78cb6b13fca2512f80dcd2bce7838bf33b70f0 (patch)
treecb7599bf8851b490f3423a862867d93b0a7684fc /docs
parent274771df9133542df048cc104c19e7756f9d3715 (diff)
Fixed #29026 -- Added --scriptable option to makemigrations.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/django-admin.txt7
-rw-r--r--docs/releases/4.1.txt4
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 6188324d52..78770fbf72 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -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``
-----------
diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt
index 219201fd00..8cdec777f9 100644
--- a/docs/releases/4.1.txt
+++ b/docs/releases/4.1.txt
@@ -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
~~~~~~~~~~