[1.8.x] Fixed #24729 -- Removed test db flush when using --keepdb.

This commit is contained in:
Aric Coady 2015-04-29 12:17:52 -07:00 committed by Tim Graham
parent cb370f8510
commit 6b05d3a2e3
2 changed files with 4 additions and 1 deletions

View File

@ -365,7 +365,7 @@ class BaseDatabaseCreation(object):
verbosity=max(verbosity - 1, 0),
interactive=False,
database=self.connection.alias,
test_flush=True,
test_flush=not keepdb,
)
# We then serialize the current state of the database into a string

View File

@ -75,6 +75,9 @@ Bugfixes
* Fixed a migration crash when renaming the target model of a many-to-many
relation (:ticket:`24725`).
* Removed flushing of the test database with :djadminopt:`--keepdb`, which
prevented apps with data migrations from using the option (:ticket:`24729`).
Optimizations
=============