1
0
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:
Mariusz Felisiak
2020-09-23 10:54:04 +02:00
parent 2c629b37d5
commit fbb7881956
8 changed files with 74 additions and 6 deletions

View File

@@ -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

View File

@@ -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`).