summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-05-17 13:14:43 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-05-17 13:15:30 +0200
commitcdd970ae22303e6c58b5c1f3ba695c470a811b56 (patch)
treee5ca84561a4d59a8ca90648fe9d1e351f97a3c19 /docs
parent2b5c5e54de6545c6cf3cc97996b37618cbae87bd (diff)
[4.2.x] Fixed #34568 -- Made makemigrations --update respect --name option.
Thanks David Sanders for the report. Backport of c52f4295f254e1c14af769d22b1a5f516a941f58 from main
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/django-admin.txt3
-rw-r--r--docs/releases/4.2.2.txt3
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 5e1be0d206..1c43523d67 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -759,6 +759,9 @@ generated migration files to ``stdout``.
Merges model changes into the latest migration and optimize the resulting
operations.
+The updated migration will have a generated name. In order to preserve the
+previous name, set it using ``--name``.
+
``migrate``
-----------
diff --git a/docs/releases/4.2.2.txt b/docs/releases/4.2.2.txt
index ca21e5f1ec..7506b8a237 100644
--- a/docs/releases/4.2.2.txt
+++ b/docs/releases/4.2.2.txt
@@ -19,3 +19,6 @@ Bugfixes
* Fixed a regression in Django 4.2 that caused a crash of ``QuerySet.defer()``
when passing a ``ManyToManyField`` or ``GenericForeignKey`` reference. While
doing so is a no-op, it was allowed in older version (:ticket:`34570`).
+
+* Fixed a bug in Django 4.2 where :option:`makemigrations --update` didn't
+ respect the ``--name`` option (:ticket:`34568`).