mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
[3.1.x] Fixed #32012 -- Made test database creation sync apps models when migrations are disabled.
Thanks Jaap Roes for the report.
Backport of 77caeaea88 from master
This commit is contained in:
@@ -787,6 +787,8 @@ on :ref:`controlling the creation order of test databases
|
||||
Default: ``True``
|
||||
|
||||
When set to ``False``, migrations won't run when creating the test database.
|
||||
This is similar to setting ``None`` as a value in :setting:`MIGRATION_MODULES`,
|
||||
but for all apps.
|
||||
|
||||
.. setting:: TEST_MIRROR
|
||||
|
||||
|
||||
@@ -19,3 +19,7 @@ Bugfixes
|
||||
|
||||
* Fixed a regression in Django 3.1 where a queryset would crash if it contained
|
||||
an aggregation and a ``Q`` object annotation (:ticket:`32007`).
|
||||
|
||||
* Fixed a bug in Django 3.1 where a test database was not synced during
|
||||
creation when using the :setting:`MIGRATE <TEST_MIGRATE>` test database
|
||||
setting (:ticket:`32012`).
|
||||
|
||||
Reference in New Issue
Block a user