From 6f78cb6b13fca2512f80dcd2bce7838bf33b70f0 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Fri, 6 Aug 2021 09:59:53 -0400 Subject: Fixed #29026 -- Added --scriptable option to makemigrations. --- docs/ref/django-admin.txt | 7 +++++++ docs/releases/4.1.txt | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'docs') 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 ~~~~~~~~~~ -- cgit v1.3